UNPKG

react-hook-modal

Version:

A custom modal, with a custom hook for modal handling in React App

23 lines (22 loc) 698 B
import React from 'react'; export interface ModalState { show: boolean; component: JSX.Element | null; footer: JSX.Element | null; title: string | null | undefined; dataProps: any; width?: string | number | undefined | null; height?: string | number | undefined | null; closeOnBackgroundOrEsc?: boolean; resizable?: boolean; fullScreen?: boolean; animation?: boolean; darkMode?: boolean; } export declare const ModalDataContext: React.Context<{ modalState: ModalState; setModalState: (_state: ModalState) => void; }>; export declare const ModalDataContextProvider: ({ children }: { children: any; }) => JSX.Element;