forked from geolba/tethys.backend
Arno Kaimbacher
c4f4eff0d9
- typescript and prettier updates - FileUpload component with dark mode and dragable uploads - comment FontFamily in tailwind.config.js
13 lines
371 B
TypeScript
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 };
|