ente/web/packages/shared/components/ErrorComponents.tsx
Manav Rathi 17948e8364
Rename
2024-10-07 19:39:12 +05:30

12 lines
338 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("generic_error_retry"),
});