mod-arch-core
Version:
Core functionality and API utilities for modular architecture micro-frontend projects
18 lines • 592 B
TypeScript
import React from 'react';
declare enum NotificationTypes {
SUCCESS = "success",
ERROR = "error",
INFO = "info",
WARNING = "warning"
}
type NotificationProps = (title: string, message?: React.ReactNode) => void;
type NotificationRemoveProps = (id: number | undefined) => void;
type NotificationTypeFunc = {
[key in NotificationTypes]: NotificationProps;
};
interface NotificationFunc extends NotificationTypeFunc {
remove: NotificationRemoveProps;
}
export declare const useNotification: () => NotificationFunc;
export {};
//# sourceMappingURL=useNotification.d.ts.map