UNPKG

@scrumble-nl/react-quick-modal

Version:

A quick and easy wrapper around react-bootstrap modal, you can add or remove a modal from anywhere in your application with a few simple steps.

11 lines (10 loc) 456 B
import React, { ComponentType, PropsWithChildren } from 'react'; import { ModalHook, ModalProps } from './quick-modal'; export type IModalContext = { component: ComponentType<ModalProps> | null; props: object; showModal: ModalHook['showModal']; hideModal: ModalHook['hideModal']; }; export declare const ModalContext: React.Context<IModalContext>; export declare const ModalProvider: ({ children }: PropsWithChildren) => React.JSX.Element;