import PropTypes from 'prop-types'; import { h } from 'preact'; import { forwardRef } from 'preact/compat'; import { locale } from '../utilities/locale'; import { ButtonNew as Button } from '@crayons'; import SearchIcon from '@images/search.svg'; import AlgoliaIcon from '@images/algolia.svg' export const SearchForm = forwardRef(({ searchTerm, onSubmitSearch, branding }, ref) => (
)); SearchForm.propTypes = { searchTerm: PropTypes.string.isRequired, onSubmitSearch: PropTypes.func.isRequired, };