Files
emaui/libs/ui/src/lib/feedback/notify.ts
2026-05-29 15:23:46 +03:00

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' }),
};