UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

17 lines (14 loc) 538 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import * as react from 'react'; import { PropsWithChildren } from 'react'; type ModalContextType = { register: string[]; addToRegister: (id: string) => void; removeFromRegister: (id: string) => void; }; declare const ModalContext: react.Context<ModalContextType>; /** * A Simple Wrapper for the context */ declare const ModalRegister: ({ children }: PropsWithChildren) => react_jsx_runtime.JSX.Element; export { ModalContext, type ModalContextType, ModalRegister };