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.

9 lines (8 loc) 280 B
import React from 'react'; import type { ModalState } from '../types/modal'; interface ModalsProps { modals: ModalState[]; container?: React.ComponentType<any>; } export default function Modals({ container: Container, modals }: ModalsProps): React.JSX.Element; export {};