@wordpress/edit-post
Version:
Edit Post module for WordPress.
16 lines (14 loc) • 474 B
JavaScript
import { createElement } from "@wordpress/element";
const Section = ({
description,
title,
children
}) => createElement("section", {
className: "edit-post-preferences-modal__section"
}, createElement("h2", {
className: "edit-post-preferences-modal__section-title"
}, title), description && createElement("p", {
className: "edit-post-preferences-modal__section-description"
}, description), children);
export default Section;
//# sourceMappingURL=section.js.map