UNPKG

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
import { IModalRenderCondition } from '../interfaces/modal'; export interface IRenderIfProps { elementRenderIf?: IModalRenderCondition; } declare const useRenderIf: ({ elementRenderIf }: IRenderIfProps) => { render: boolean; checkRender: (formData: Record<string, unknown>, { name }: Record<"name", string> & Record<"type", string | undefined>) => Promise<boolean | undefined>; setRender: import("react").Dispatch<import("react").SetStateAction<boolean>>; }; export default useRenderIf;