Files
frontend/src/pages/account-income/ui/AccountIncomePage/AccountIncomePage.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 { useAccountIncomePageVm } from "./AccountIncomePage.vm";
import { AccountIncomePageError } from "./components/AccountIncomePageError.view";
import { AccountIncomePageLoaded } from "./components/AccountIncomePageLoaded.view";
import { AccountIncomePageLoading } from "./components/AccountIncomePageLoading.view";
const AccountIncomePage: FC = () => {
const vm = useAccountIncomePageVm();
if (vm.state === "loading") return <AccountIncomePageLoading />;
return vm.state === "error"
? <AccountIncomePageError {...vm} />
: <AccountIncomePageLoaded {...vm} />;
};
export { AccountIncomePage };