UNPKG

@wordpress/components

Version:
29 lines (27 loc) 689 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _jsxRuntime = require("react/jsx-runtime"); /** * Internal dependencies */ /** * `PanelHeader` renders the header for the `Panel`. * This is used by the `Panel` component under the hood, * so it does not typically need to be used. */ function PanelHeader({ label, children }) { return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", { className: "components-panel__header", children: [label && /*#__PURE__*/(0, _jsxRuntime.jsx)("h2", { children: label }), children] }); } var _default = exports.default = PanelHeader; //# sourceMappingURL=header.js.map