Files
frontend/src/pages/not-found/ui/NotFoundPage.tsx
T
codex-bot 2db39f25d9
Frontend verify / commits (push) Skipped
Frontend verify / security (push) Successful in 11s
Frontend verify / verify (push) Failing after 8m19s
refactor: normalize view models and share breadcrumbs and titles (WealthLedger/frontend#143) (#153)
2026-11-04 21:14:29 +03:00

32 lines
696 B
TypeScript

import type { FC } from "react";
import { Button, Stack, Title } from "@mantine/core";
import { StateView } from "@wealthledger/ui";
import { useTranslation } from "react-i18next";
import { Link } from "react-router";
import { useAppDocumentTitle } from "@/shared/ui";
const NotFoundPage: FC = () => {
const { t } = useTranslation();
useAppDocumentTitle(t("notFound.title"));
return (
<Stack>
<Title order={1}>{t("notFound.title")}</Title>
<StateView
action={(
<Button component={Link} to="/accounts">
{t("notFound.action")}
</Button>
)}
text={t("states.emptyText")}
title={t("states.emptyTitle")}
/>
</Stack>
);
};
export { NotFoundPage };