import React from 'react'; import { Button } from './ui/button'; import { Link, useRouterState } from '@tanstack/react-router'; import { useTranslation } from '@i18next-toolkit/react'; import { Card, CardContent, CardFooter, CardHeader } from './ui/card'; import { Code } from './Code'; export const DefaultNotFound: React.FC = React.memo(() => { const { t } = useTranslation(); const pathname = useRouterState({ select: (state) => state.location.pathname, }); return (
{t('Sorry, but this page is not found')}
{t('Path')}: {pathname}
); }); DefaultNotFound.displayName = 'DefaultNotFound';