'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),React=require("react"),Text=require("../../text/components/Text.js");const Heading=({setting:e={},styles:t={},builderAttrs:r,style:a,builderProps:s,advanced:u,children:n})=>{let c=React.useMemo(()=>{switch(e.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"}},[e.htmlTag]);return jsxRuntime.jsx(Text.default,{builderProps:s,builderAttrs:r,advanced:u,style:a,styles:t,setting:{text:e.text,htmlTag:c,globalSize:e.globalSize,background:e.background},children:n})};exports.default=Heading;
