'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../text/components/Text.js"),r=require("@gem-sdk/core");exports.default=({setting:i,builderProps:l,styles:d})=>{let s=r.useArticleStore(e=>e.article),{isPreviewSharePageMode:g}=r.useRenderMode(),p=s?.tags?.map(e=>e?.name).join(", "),a=g?null:e.jsx("div",{children:e.jsx("p",{className:"gp-bg-light-100 gp-border-dashed gp-border-[1px] gp-border-text-light-100 gp-text-text-light-500 gp-rounded-lg gp-px-2 gp-py-1 gp-text-12 gp-leading-5",children:"No article tag"})});return e.jsx("div",{id:`shopify-text-element-${l?.uid}`,"data-article-id":s?.baseID?.replace("gid://shopify/OnlineStoreArticle/",""),children:s?.tags?.length?e.jsx(t.default,{builderProps:l,styles:d,setting:{...i,text:p,excludeFlex:!0}}):a})};
