import type { FC } from "react"; import { Button } from "@mantine/core"; import { StateView } from "@wealthledger/ui"; import { useTranslation } from "react-i18next"; import { Link } from "react-router"; import { ApiErrorCode, isApiErrorCode } from "@/shared/api"; import { ReadRetryButton, type ReadRetryProps } from "@/shared/ui"; type AccountsPageErrorProps = { code?: string; readRetry?: ReadRetryProps; }; const AccountsPageError: FC = (props) => { const { code } = props; const { t } = useTranslation(); const settingsAction = ( ); if (isApiErrorCode(code, ApiErrorCode.TbankNotConnected)) return ( ); if (isApiErrorCode(code, ApiErrorCode.InvalidTbankToken)) return ( ); const retry = props.readRetry?.exhausted ? ( ) : undefined; return ( ); }; export { AccountsPageError };