UNPKG

@jigoooo/shared-ui

Version:

A reusable React component library and design system with TypeScript support, built on Vite for seamless integration and optimized performance.

14 lines (13 loc) 526 B
import { ReactNode } from 'react'; import { ModalContextType, ModalRenderProps } from './modal-type.ts'; export declare const ModalContext: import('react').Context<ModalContextType | null>; export declare const useModal: ({ isPossibleOverlayClose, }?: { isPossibleOverlayClose?: boolean; }) => { open: (render: (props: ModalRenderProps) => ReactNode) => string; close: (id: string) => void; modalIds: { id: string; }[]; handleIsPossibleOverlayClose: (id: string, possible: boolean) => void; };