mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 17:00:54 +01:00
18 lines
501 B
TypeScript
18 lines
501 B
TypeScript
import type { NotificationData } from "@mantine/notifications";
|
|
import { notifications } from "@mantine/notifications";
|
|
import { IconCheck, IconX } from "@tabler/icons-react";
|
|
|
|
export const showSuccessNotification = (props: NotificationData) =>
|
|
notifications.show({
|
|
...props,
|
|
color: "teal",
|
|
icon: <IconCheck size={20} />,
|
|
});
|
|
|
|
export const showErrorNotification = (props: NotificationData) =>
|
|
notifications.show({
|
|
...props,
|
|
color: "red",
|
|
icon: <IconX size={20} />,
|
|
});
|