dynamic-modal
Version:
The dynamic-modal is a solution of creation different modals into project using a json configuration file
12 lines (11 loc) • 586 B
TypeScript
import { IModalLiveDataCondition } from '../interfaces/modal';
import { IOption } from '../interfaces/option';
export interface ILiveDataProps {
elementLiveData?: IModalLiveDataCondition;
}
declare const useLiveData: ({ elementLiveData }: ILiveDataProps) => {
liveData: IOption[] | undefined;
checkLiveData: (formData: Record<string, unknown>, { name }: Record<"name", string> & Record<"type", string | undefined>) => Promise<IOption[] | null>;
setLiveData: import("react").Dispatch<import("react").SetStateAction<IOption[] | undefined>>;
};
export default useLiveData;