A custom React hook for handling modal visibility and interactions.
Prop | Type | Description |
---|---|---|
register | Object | Contains modal state and references, including isOpen, closeModal, and domRef. |
openModal | Function | Opens the modal by setting isOpen to true. |
closeModal | Function | Closes the modal by setting isOpen to false. |