feat(frontend): add cabinet shells, brand tokens, and state primitives
This commit is contained in:
1 parent
dda3825786
commit
0e2a3b02ab
85 files changed
+3313
-113
No files matched your search
@@ -0,0 +1,29 @@
|
||||
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 (
|
||||
<Page
|
||||
title="Страница не найдена"
|
||||
eyebrow="Ошибка 404"
|
||||
lead={
|
||||
<>
|
||||
Адрес <Mono>{pathname}</Mono> не ведет ни на один экран. Проверьте ссылку или вернитесь к
|
||||
началу.
|
||||
</>
|
||||
}
|
||||
>
|
||||
<div>
|
||||
<ButtonLink to={homePath}>{homeLabel}</ButtonLink>
|
||||
</div>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user