useModal is a custom hook that provides functionality to show and hide a modal.

  • Parameters

    • render: ComponentType
    • Optionaldeps: any[]

      The dependencies array to trigger updates when the modal is shown.

    Returns { hideModal: Function; showModal: Function }

    The object containing the showModal and hideModal functions.