Part of the quiet-user-feedback change; docs and specs land in their own repositories.
29 lines
635 B
TypeScript
29 lines
635 B
TypeScript
import type { FC } from "react";
|
|
|
|
import { Button, Group } from "@mantine/core";
|
|
import { StateView } from "@wealthledger/ui";
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
type AccountEventsPageErrorProps = { onReset: () => void };
|
|
|
|
const AccountEventsPageError: FC<AccountEventsPageErrorProps> = (props) => {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<StateView
|
|
action={(
|
|
<Group>
|
|
<Button onClick={props.onReset} variant="default">
|
|
{t("ledger.reset")}
|
|
</Button>
|
|
</Group>
|
|
)}
|
|
error
|
|
text={t("events.errorText")}
|
|
title={t("events.errorTitle")}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export { AccountEventsPageError };
|