Arno Kaimbacher
c4f4eff0d9
All checks were successful
CI Pipeline / japa-tests (push) Successful in 59s
- 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 };
|