mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 13:02:50 +00:00
13 lines
516 B
TypeScript
13 lines
516 B
TypeScript
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' }),
|
|
};
|