import React from 'react'; import { Select } from '../../../'; import { version as antdVersion } from '../../../package.json'; import { docVersions } from '../../website.config'; const Option = Select.Option; docVersions[antdVersion] = antdVersion; console.log(docVersions); 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 ( ); } }