'use client';
import{jsx as e}from"react/jsx-runtime";import{useMemo as t}from"react";import r from"../../text/components/Text.js";let Heading=({setting:a={},styles:n={},builderAttrs:s,style:l,builderProps:u,advanced:c,children:i})=>{let o=t(()=>{switch(a.htmlTag){case 1:return"h1";case 2:return"h2";case 3:return"h3";case 4:return"h4";case 5:return"h5";case 6:return"h6";default:return"div"}},[a.htmlTag]);return e(r,{builderProps:u,builderAttrs:s,advanced:c,style:l,styles:n,setting:{text:a.text,htmlTag:o,globalSize:a.globalSize,background:a.background},children:i})};export{Heading as default};
