Function useModal

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

  • Parameters

    • render: IRenderer
    • 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.

    • hideModal: Function
    • showModal: Function