Frontend security / security (push) Successful in 9s
Frontend verify / verify (push) Successful in 5m10s
Conventional commits / commits (pull_request) Successful in 25s
Frontend security / security (pull_request) Successful in 9s
Frontend verify / verify (pull_request) Successful in 5m10s
18 lines
795 B
TypeScript
18 lines
795 B
TypeScript
import type { FC } from "react";
|
|
import { useAccountIncomePageViewModel } from "./AccountIncomePage.vm";
|
|
import { AccountIncomePageError } from "./components/AccountIncomePageError.view";
|
|
import { AccountIncomePageLoaded } from "./components/AccountIncomePageLoaded.view";
|
|
import { AccountIncomePageLoading } from "./components/AccountIncomePageLoading.view";
|
|
|
|
type AccountIncomePageProps = { accountId?: string };
|
|
|
|
const AccountIncomePage: FC<AccountIncomePageProps> = (props) => {
|
|
const viewModel = useAccountIncomePageViewModel(props.accountId);
|
|
if (viewModel.state === "loading") return <AccountIncomePageLoading />;
|
|
if (viewModel.state === "error")
|
|
return <AccountIncomePageError {...viewModel} />;
|
|
return <AccountIncomePageLoaded {...viewModel} />;
|
|
};
|
|
|
|
export { AccountIncomePage };
|