mazeof-react
Version:
some goods for your react
13 lines (12 loc) • 395 B
TypeScript
/// <reference types="react" />
export declare const UseModal: () => {
modalTitle: string | JSX.Element;
modalBody: string | JSX.Element;
showModal: boolean;
displayModal: (modalTitle: JSX.Element | string, body: JSX.Element | string, action: any) => void;
hideModal: () => void;
modalActions: {
[x: string]: any;
};
confirm: (action: string) => void;
};