import { notifications } from '@mantine/notifications';

export const notify = {
  success: (message: string, title = 'Success') =>
    notifications.show({ title, message, color: 'green' }),
  error: (message: string, title = 'Error') =>
    notifications.show({ title, message, color: 'red' }),
  info: (message: string, title = 'Info') =>
    notifications.show({ title, message, color: 'blue' }),
  warning: (message: string, title = 'Warning') =>
    notifications.show({ title, message, color: 'yellow' }),
};
