import type { FC } from "react"; import { Button, Group } from "@mantine/core"; import { StateView } from "@wealthledger/ui"; import { useTranslation } from "react-i18next"; import { ReadRetryButton } from "@/shared/ui"; import type { AccountOperationsPageViewModel } from "../AccountOperationsPage.vm"; type AccountOperationsPageErrorProps = Extract< AccountOperationsPageViewModel, { state: "error" } >; const AccountOperationsPageError: FC = ( props, ) => { const { t } = useTranslation(); return ( {props.readRetry.exhausted && ( )} )} text={t("ledger.errorText")} title={t("ledger.errorTitle")} /> ); }; export { AccountOperationsPageError };