import { useLocation } from "react-router-dom"; import { ButtonLink, Mono, Page } from "../../../shared/ui"; type NotFoundPageProps = { /** Where the recovery link leads, for example the current cabinet. */ homePath?: string; homeLabel?: string; }; export function NotFoundPage({ homePath = "/", homeLabel = "На главную" }: NotFoundPageProps) { const { pathname } = useLocation(); return ( Адрес {pathname} не ведет ни на один экран. Проверьте ссылку или вернитесь к началу. } >
{homeLabel}
); }