import PropTypes from 'prop-types'; import { h } from 'preact'; import { forwardRef } from 'preact/compat'; import { Button } from '@crayons'; const SearchIcon = () => ( ); export const SearchForm = forwardRef(({ searchTerm, onSubmitSearch }, ref) => (
)); SearchForm.propTypes = { searchTerm: PropTypes.string.isRequired, onSubmitSearch: PropTypes.func.isRequired, };