import { getText } from "../../locales/index.js";
import { CloseCircleOutlined, ExclamationCircleOutlined } from "@ant-design/icons";
//#region src/components/hardwareErrorTip/types.ts
const prefix = "pisell-lowcode";
const ErrorTypeTheme = {
	fatal: {
		iconColor: "#cf1322",
		backgroundColor: "#fff1f0",
		shadowColor: "#ffa39e",
		badgeColor: "#fee2e1"
	},
	critical: {
		iconColor: "#d4380d",
		backgroundColor: "#fff2e8",
		shadowColor: "#ffbb96",
		badgeColor: "#ffedd5"
	},
	normal: {
		iconColor: "#0958d9",
		backgroundColor: "#e6f4ff",
		shadowColor: "#91caff",
		badgeColor: "#d2eafd"
	},
	info: {
		iconColor: "#389e0d",
		backgroundColor: "#f6ffed",
		shadowColor: "#b7eb8f",
		badgeColor: "#dcfce7"
	}
};
const errorTypes = [
	{
		type: "fatal",
		title: () => getText("pisell2.text.hardware-error.fatal"),
		icon: CloseCircleOutlined
	},
	{
		type: "critical",
		title: () => getText("pisell2.text.hardware-error.critical"),
		icon: ExclamationCircleOutlined
	},
	{
		type: "normal",
		title: () => getText("pisell2.text.hardware-error.normal"),
		icon: ExclamationCircleOutlined
	},
	{
		type: "info",
		title: () => getText("pisell2.text.hardware-error.info"),
		icon: ExclamationCircleOutlined
	}
];
//#endregion
export { ErrorTypeTheme, errorTypes, prefix };
