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