import React from 'react'; import classNames from 'classnames'; class Search extends React.Component { focus() { this.input.focus(); } render() { const { value, onChange, onClose, open = false, onSubmit = () => {} } = this.props; const closable = typeof onClose === 'function'; const handleSubmit = (e) => { e.preventDefault(); onSubmit(); }; const handleClose = (e) => { e.preventDefault(); onClose(); } return (
); } } export default Search;