mirror of
https://github.com/ente-io/ente.git
synced 2025-05-24 12:09:17 +00:00
12 lines
332 B
TypeScript
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"),
|
|
});
|