import React from 'react'; import { Link } from 'react-router'; import { Select, Menu, Row, Col } from '../../../'; const Option = Select.Option; import './index.less'; import componentsList from '../../../_site/data/components-list'; export default class Header extends React.Component { handleSearch(value) { console.log(value); } render() { const routes = this.props.routes; const activeMenuItem = routes[1].path || 'home'; const options = []; for (let key of Object.keys(componentsList)) { componentsList[key].forEach((item) => { const url = `/components/${item.english.toLowerCase()}`; options.push( ); }); } return ( ); } }