Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

690 B
Raw Blame
import type { NotificationData } from "@mantine/notifications";
import { notifications } from "@mantine/notifications";
import { IconCheck, IconInfoCircle, 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} />,
  });

export const showWarningNotification = (props: NotificationData) =>
  notifications.show({
    ...props,
    color: "yellow",
    icon: <IconInfoCircle size={20} />,
  });