function useMenuButtonContext() {
  var _useDropdownContext = useDropdownContext(),
      isExpanded = _useDropdownContext.state.isExpanded;

  return Object(react["useMemo"])(function () {
    return {
      isExpanded: isExpanded
    };
  }, [isExpanded]);
} ////////////////////////////////////////////////////////////////////////////////
A hook that exposes data for a given `Menu` component to its descendants.

@see Docs https://reach.tech/menu-button#usemenubuttoncontext