ente/web/packages/shared/components/ErrorComponents.tsx
Manav Rathi a95a21790b
Rename
2024-09-21 13:27:37 +05:30

12 lines
332 B
TypeScript

import { t } from "i18next";
import type { DialogBoxAttributesV2 } from "./DialogBoxV2/types";
/**
* {@link DialogBoxAttributesV2} for showing a generic error.
*/
export const genericErrorAttributes = (): DialogBoxAttributesV2 => ({
title: t("error"),
close: { variant: "critical" },
content: t("UNKNOWN_ERROR"),
});