UNPKG

@wordpress/preferences

Version:
29 lines (28 loc) 919 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _jsxRuntime = require("react/jsx-runtime"); const Section = ({ description, title, children }) => /*#__PURE__*/(0, _jsxRuntime.jsxs)("fieldset", { className: "preferences-modal__section", children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("legend", { className: "preferences-modal__section-legend", children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("h2", { className: "preferences-modal__section-title", children: title }), description && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", { className: "preferences-modal__section-description", children: description })] }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", { className: "preferences-modal__section-content", children: children })] }); var _default = exports.default = Section; //# sourceMappingURL=index.js.map