import cn from 'classnames' import { FC } from 'react' import s from './Searchbar.module.css' import { useRouter } from 'next/router' interface Props { className?: string children?: any } const Searchbar: FC = ({ className }) => { const router = useRouter() return (
{ e.preventDefault() router.push('/search') console.log('changing') }} />
) } export default Searchbar