feat(income): add account income analytics
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import type { FC } from "react";
|
||||
import {
|
||||
AccountIncomePageError,
|
||||
AccountIncomePageLoaded,
|
||||
AccountIncomePageLoading,
|
||||
} from "./AccountIncomePage.view";
|
||||
import { useAccountIncomePageViewModel } from "./AccountIncomePage.vm";
|
||||
|
||||
const AccountIncomePage: FC = () => {
|
||||
const viewModel = useAccountIncomePageViewModel();
|
||||
if (viewModel.state === "loading") return <AccountIncomePageLoading />;
|
||||
if (viewModel.state === "error")
|
||||
return <AccountIncomePageError {...viewModel} />;
|
||||
return <AccountIncomePageLoaded {...viewModel} />;
|
||||
};
|
||||
|
||||
export { AccountIncomePage };
|
||||
Reference in New Issue
Block a user