diff --git a/web/modals/search-modal.react.js b/web/modals/search-modal.react.js --- a/web/modals/search-modal.react.js +++ b/web/modals/search-modal.react.js @@ -4,25 +4,27 @@ import Search from '../components/search.react'; import Modal from './modal.react'; +import type { ModalSize } from './modal.react'; import css from './search-modal.css'; type Props = { +name: string, +searchPlaceholder: string, + +size?: ModalSize, +onClose: () => void, +children: (searchText: string) => React.Node, }; function SearchModal(props: Props): React.Node { const [searchText, setSearchText] = React.useState(''); - const { name, searchPlaceholder, onClose, children } = props; + const { name, searchPlaceholder, size, onClose, children } = props; const child = React.useMemo(() => children(searchText), [ children, searchText, ]); return ( - +