Part of the quiet-user-feedback change; docs and specs land in their own repositories.
23 lines
516 B
TypeScript
23 lines
516 B
TypeScript
import type { FC } from "react";
|
|
|
|
import { StateView } from "@wealthledger/ui";
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
import type { AccountIncomePageViewModel } from "../AccountIncomePage.vm";
|
|
|
|
type ErrorProps = Extract<AccountIncomePageViewModel, { state: "error" }>;
|
|
|
|
const AccountIncomePageError: FC<ErrorProps> = () => {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<StateView
|
|
error
|
|
text={t("income.errorText")}
|
|
title={t("income.errorTitle")}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export { AccountIncomePageError };
|