2021-05-21 16:48:55 +01:00

21 lines
356 B
TypeScript

import { useRouter } from 'next/router';
import { Form } from 'portal';
const SearchForm: React.FC = () => {
const router = useRouter();
const handleSubmit = (q) => {
router.push({
pathname: '/search',
query: { q },
});
};
return (
<>
<Form handleSubmit={handleSubmit} />
</>
);
};
export default SearchForm;