first commit
This commit is contained in:
@ -0,0 +1,8 @@
|
||||
export type NotificationType = 'success' | 'info' | 'warning' | 'error';
|
||||
|
||||
export interface Notification {
|
||||
id: string;
|
||||
title?: string;
|
||||
content: string;
|
||||
type?: NotificationType;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
import type { NotificationType } from "./Notification.interface";
|
||||
|
||||
export interface NotificationConfig {
|
||||
title?: string;
|
||||
content: string;
|
||||
duration?: number;
|
||||
autoClose?: boolean;
|
||||
type?: NotificationType;
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
import type { Notification } from './Notification.interface';
|
||||
|
||||
export interface NotificationsState {
|
||||
notifications: Notification[];
|
||||
}
|
5
src/components/Notification/interfaces/index.ts
Normal file
5
src/components/Notification/interfaces/index.ts
Normal 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 };
|
Reference in New Issue
Block a user