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

21 lines
705 B
TypeScript

import type { FC } from "react";
import { useAccountOperationsPageVm } from "./AccountOperationsPage.vm";
import { AccountOperationsPageError } from "./components/AccountOperationsPageError.view";
import { AccountOperationsPageLoaded } from "./components/AccountOperationsPageLoaded.view";
import { AccountOperationsPageLoading } from "./components/AccountOperationsPageLoading.view";
const AccountOperationsPage: FC = () => {
const vm = useAccountOperationsPageVm();
if (vm.state === "loading") {
return <AccountOperationsPageLoading />;
}
return vm.state === "error"
? <AccountOperationsPageError {...vm} />
: <AccountOperationsPageLoaded {...vm} />;
};
export { AccountOperationsPage };