import type { FC } from "react"; import { Stack } from "@mantine/core"; import { StateView } from "@wealthledger/ui"; import { useTranslation } from "react-i18next"; import type { BrokerageAccount } from "@/entities/brokerage-account"; import { BrokerageEventsPreview } from "@/entities/brokerage-event"; import type { AccountPageIncomeSummary, AccountPageRecentEvents, AccountPageRecentOperations, } from "../AccountPage.vm"; import { AccountHeading } from "./AccountHeading.view"; import { IncomeSummary } from "./IncomeSummary.view"; import { PortfolioRefreshState } from "./PortfolioRefreshState/PortfolioRefreshState.view"; import { PortfolioStructure } from "./PortfolioStructure/PortfolioStructure"; import { RecentOperations } from "./RecentOperations.view"; type AccountPageEmptyProps = { account?: BrokerageAccount; accountId?: string; incomeSummary?: AccountPageIncomeSummary; recentEvents: AccountPageRecentEvents; recentOperations: AccountPageRecentOperations; refreshError?: boolean; refreshing?: boolean; retry?: () => void; sourceError?: boolean; }; const AccountPageEmpty: FC = (props) => { const { t } = useTranslation(); return ( {!!(props.incomeSummary) && ()} ); }; export { AccountPageEmpty };