phx-react
Version:
PHX REACT
13 lines (12 loc) • 377 B
TypeScript
export interface IAlertState {
message?: string;
isFailure?: boolean;
show?: boolean;
type?: 'add' | 'edit' | 'delete' | 'custom';
}
export declare const DEFAULT_ALERT_STATE: IAlertState;
export declare const useShowNotification: () => {
notification: IAlertState;
onShowNotification: (data: IAlertState) => void;
onHideNotification: () => void;
};