useModal is a custom hook that provides functionality to show and hide a modal.
Optional
The dependencies array to trigger updates when the modal is shown.
The object containing the showModal and hideModal functions.
useModal is a custom hook that provides functionality to show and hide a modal.