tethys.backend/resources/js/notiwind.ts
Arno Kaimbacher c4f4eff0d9
All checks were successful
CI Pipeline / japa-tests (push) Successful in 59s
- daraggable crators and contributors inside Pages/Submitter/Dataset/Create.Vue
- typescript and prettier updates
- FileUpload component with dark mode and dragable uploads
- comment FontFamily in tailwind.config.js
2023-06-16 16:44:28 +02:00

13 lines
371 B
TypeScript

// notiwind.ts
import { createNotifier, NotificationGroup, defineNotificationComponent } from 'notiwind';
export type NotificationSchema = {
type: string;
title?: string;
text: string;
};
export const notify = createNotifier<NotificationSchema>();
export const Notification = defineNotificationComponent<NotificationSchema>();
export { NotificationGroup };