dynamic-modal
Version:
The dynamic-modal is a solution of creation different modals into project using a json configuration file
11 lines (10 loc) • 503 B
TypeScript
import { IModalRenderCondition } from '../interfaces/modal';
export interface IRenderIfProps {
elementEnableIf?: IModalRenderCondition;
}
declare const useEnableIf: ({ elementEnableIf }: IRenderIfProps) => {
enable: boolean;
checkEnable: (formData: Record<string, unknown>, { name }: Record<"name", string> & Record<"type", string | undefined>) => Promise<boolean | undefined>;
setEnable: import("react").Dispatch<import("react").SetStateAction<boolean>>;
};
export default useEnableIf;