'use client';
import{jsx as e}from"react/jsx-runtime";import t from"../../text/components/Text.js";import o from"../../button/components/Button.js";import{useArticleStore as r}from"@gem-sdk/core";let i=({setting:i,builderAttrs:l,builderProps:n,styles:s,style:a,advanced:d})=>{let p=r(e=>e.article),{readMoreType:c,label:m}=i??{},{typoBtn:x,typoText:u,globalSizeText:f,globalSizeBtn:g,textColorTextState:b,alignBtn:y,alignText:h,enableHoverEffectText:v}=s??{};return e("div",{id:`shopify-text-element-${n?.uid}`,"data-article-id":p?.baseID?.replace("gid://shopify/OnlineStoreArticle/",""),children:"text"===c?e(t,{styles:{...s,color:b,typo:u,spacing:"0px",align:h,textColor:void 0,enableHoverEffect:v},setting:{...i,text:m,globalSize:f,excludeFlex:!0}}):e(o,{builderAttrs:l,builderProps:n,setting:{...i,label:m,htmlType:"button"},styles:{...s,typo:x,globalSize:g,align:y},style:a,advanced:d})})};export{i as default};
