UNPKG

@wordpress/components

Version:
32 lines (30 loc) 788 B
/** * WordPress dependencies */ import { forwardRef, useContext } from '@wordpress/element'; /** * Internal dependencies */ import { MenuContext } from './context'; import { Text } from '../text'; import * as Styled from './styles'; import { jsx as _jsx } from "react/jsx-runtime"; export const MenuGroupLabel = forwardRef(function MenuGroup(props, ref) { const menuContext = useContext(MenuContext); return /*#__PURE__*/_jsx(Styled.MenuGroupLabel, { ref: ref, render: /*#__PURE__*/ // @ts-expect-error The `children` prop is passed _jsx(Text, { upperCase: true, variant: "muted", size: "11px", weight: 500, lineHeight: "16px" }), ...props, store: menuContext?.store }); }); //# sourceMappingURL=group-label.js.map