woocommerce/plugins/woocommerce-blocks/bin/hook-docs/utilities/section-with-heading.js

6 lines
186 B
JavaScript

const sectionWithHeading = ( content, heading, headingLevel = 'h3' ) => {
return content ? [ { [ headingLevel ]: heading }, content ] : [];
};
module.exports = { sectionWithHeading };