import type { FC } from "react"; import { Alert, Button, Group, Stack, Text, Title, } from "@mantine/core"; import { DatePickerInput } from "@mantine/dates"; import { useTranslation } from "react-i18next"; import { BrokerageEventCard, brokerageEventKey, } from "@/entities/brokerage-event"; import { SourceSyncStatus } from "@/shared/ui"; import type { AccountEventsPageViewModel } from "../AccountEventsPage.vm"; import { AccountEventsPageEmpty } from "./AccountEventsPageEmpty.view"; type AccountEventsPageLoadedProps = Extract< AccountEventsPageViewModel, { state: "loaded" } >; const AccountEventsPageLoadedEvents: FC = ( props, ) => { if (props.events.length > 0) { return ( {props.events.map(event => ( ))} ); } if (props.partial) { return; } return ; }; const AccountEventsPageLoaded: FC = (props) => { const { t } = useTranslation(); return ( {t("events.title")} {!!props.partial && {t("investment.partial")}} {t("events.hint")} ); }; export { AccountEventsPageLoaded };