import React from 'react'; import { Select } from 'antd'; import { version as antdVersion } from '../../../package.json'; import { docVersions } from '../../website.config'; const Option = Select.Option; docVersions[antdVersion] = antdVersion; export default class Footer extends React.Component { constructor(props) { super(props); this.handleVersionChange = this.handleVersionChange.bind(this); } handleVersionChange(url) { window.location.href = url; } render() { const options = Object.keys(docVersions).map(version => ( )); return ( ); } }