import { createElement } from "react"; /** * External dependencies */ import classnames from 'classnames'; /** * WordPress dependencies */ import { forwardRef } from '@wordpress/element'; /** * Internal dependencies */ import PanelHeader from './header'; function UnforwardedPanel({ header, className, children }, ref) { const classNames = classnames(className, 'components-panel'); return createElement("div", { className: classNames, ref: ref }, header && createElement(PanelHeader, { label: header }), children); } /** * `Panel` expands and collapses multiple sections of content. * * ```jsx * import { Panel, PanelBody, PanelRow } from '@wordpress/components'; * import { more } from '@wordpress/icons'; * * const MyPanel = () => ( * * * My Panel Inputs and Labels * * * ); * ``` */ export const Panel = forwardRef(UnforwardedPanel); export default Panel; //# sourceMappingURL=index.js.map