UNPKG

@ducor/react

Version:

admin template ui interface

19 lines (18 loc) 773 B
import React from "react"; type NotificationType = "success" | "info" | "warning" | "error"; type NotificationPosition = "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight"; interface NotificationProps { message: string; description: string; type: NotificationType; position: NotificationPosition; onClose: () => void; } declare const Notification: React.FC<NotificationProps>; interface NotificationContextProps { addNotification: (message: string, description: string, type: NotificationType, position: NotificationPosition) => void; } declare const NotificationContainer: React.FC; declare const useNotification: () => NotificationContextProps; export { NotificationContainer, useNotification }; export default Notification;