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 type { InvestmentResourceMeta } from "@/shared/api"; import { BrokerageEventsPreview } from "@/entities/brokerage-event"; import { ReadRetry, type ReadRetryProps, SourceSyncStatus } from "@/shared/ui"; import type { AccountPageIncomeSummary, AccountPageRecentEvents, AccountPageRecentOperations, } from "../../../model/previews"; import { AccountHeading } from "./AccountHeading.view"; import { IncomeSummary } from "./IncomeSummary.view"; import { PortfolioStructure } from "./PortfolioStructure/PortfolioStructure"; import { RecentOperations } from "./RecentOperations.view"; type AccountPageEmptyProps = { account?: BrokerageAccount; accountId?: string; incomeSummary?: AccountPageIncomeSummary; readRetry?: ReadRetryProps; recentEvents: AccountPageRecentEvents; recentOperations: AccountPageRecentOperations; source?: InvestmentResourceMeta; }; const AccountPageEmpty: FC = (props) => { const { t } = useTranslation(); const text = t( props.accountId === "all" ? "portfolio.allEmptyText" : "portfolio.emptyText", ); return ( {!!props.readRetry && } {!!props.incomeSummary && } ); }; export { AccountPageEmpty };