Files
frontend/src/pages/account-events/ui/AccountEventsPage/AccountEventsPage.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

18 lines
641 B
TypeScript

import type { FC } from "react";
import { useAccountEventsPageVm } from "./AccountEventsPage.vm";
import { AccountEventsPageError } from "./components/AccountEventsPageError.view";
import { AccountEventsPageLoaded } from "./components/AccountEventsPageLoaded.view";
import { AccountEventsPageLoading } from "./components/AccountEventsPageLoading.view";
const AccountEventsPage: FC = () => {
const vm = useAccountEventsPageVm();
if (vm.state === "loading") return <AccountEventsPageLoading />;
return vm.state === "error"
? <AccountEventsPageError {...vm} />
: <AccountEventsPageLoaded {...vm} />;
};
export { AccountEventsPage };