2023-03-24 10:41:52 +00:00
|
|
|
// notiwind.ts
|
2023-06-16 14:44:28 +00:00
|
|
|
import { createNotifier, NotificationGroup, defineNotificationComponent } from 'notiwind';
|
|
|
|
|
|
|
|
export type NotificationSchema = {
|
2023-03-24 10:41:52 +00:00
|
|
|
type: string;
|
|
|
|
title?: string;
|
|
|
|
text: string;
|
2023-06-16 14:44:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const notify = createNotifier<NotificationSchema>();
|
|
|
|
export const Notification = defineNotificationComponent<NotificationSchema>();
|
|
|
|
export { NotificationGroup };
|