• Function that will toggle the behaviour to close submenu when clicking the body

    Export

    Returns

    {string}

    Parameters

    • submenuId: string
    • clickOutsideToClose: boolean

    Returns string