UNPKG

react-use-hook-modal

Version:

A React Hook library for declaratively managing modals, eliminating the need for state declarations. Props can be passed directly through function calls, simplifying modal control in your application.

4 lines (3 loc) 276 B
import type { ModalDispatchContextType, ModalStateContextType } from '../types/modal'; export declare const ModalStateContext: import("react").Context<ModalStateContextType | null>; export declare const ModalDispatchContext: import("react").Context<ModalDispatchContextType>;