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