first commit

This commit is contained in:
Dede Fuji Abdul
2023-10-16 09:00:27 +07:00
commit 275153649c
75 changed files with 20360 additions and 0 deletions

View File

@ -0,0 +1,8 @@
export type NotificationType = 'success' | 'info' | 'warning' | 'error';
export interface Notification {
id: string;
title?: string;
content: string;
type?: NotificationType;
}

View File

@ -0,0 +1,9 @@
import type { NotificationType } from "./Notification.interface";
export interface NotificationConfig {
title?: string;
content: string;
duration?: number;
autoClose?: boolean;
type?: NotificationType;
}

View File

@ -0,0 +1,5 @@
import type { Notification } from './Notification.interface';
export interface NotificationsState {
notifications: Notification[];
}

View File

@ -0,0 +1,5 @@
import type { Notification, NotificationType } from './Notification.interface'
import type { NotificationsState } from './NotificationsState.interface'
import type { NotificationConfig } from './NotificationConfig.interface'
export type { Notification, NotificationsState, NotificationConfig, NotificationType };