UNPKG

@wordpress/components

Version:
37 lines (32 loc) 680 B
import { createElement } from "@wordpress/element"; /** * WordPress dependencies */ import { memo } from '@wordpress/element'; /** * Internal dependencies */ import { ContextSystemProvider } from '../context'; const contextValue = { Text: { variant: 'muted' } }; /** * @typedef Props * @property {import('react').ReactNode} [children] The content to display within `FormGroupHelp`. */ /** * * @param {Props} props */ function FormGroupHelp({ children }) { if (!children) return null; return createElement(ContextSystemProvider, { value: contextValue }, children); } export default memo(FormGroupHelp); //# sourceMappingURL=form-group-help.js.map