import { Box, Flash } from '@primer/react' import { useRouter } from 'next/router' import { useTranslation } from 'components/hooks/useTranslation' interface Props { error: Error } export function SearchError({ error }: Props) { const { t } = useTranslation('search') const { locale, asPath } = useRouter() return (
{error.toString()}}