useContextualModal
Headless open/close state for a modal that needs to remember the subject it was opened against (the row being edited, the device being inspected, etc.).
Headless open/close state for a modal that needs to remember the subject it was opened against (the row being edited, the device being inspected, etc.).
import { useContextualModal } from "@tetherto/mdk-react-adapter";Signature
({ onOpen, onClose, }: UseContextualModalParams = {}) => { modalOpen: boolean; handleClose: () => void; handleOpen: (sub: T | null) => void; subject: T | null; setSubject: React.Dispatch<React.SetSta…| Package | @tetherto/mdk-react-adapter |
| Requires provider | No |