'use client';
import{jsx as e}from"react/jsx-runtime";import{useCurrentVariant as t,useRenderMode as r}from"@gem-sdk/core";import l from"../../../text/components/Text.js";import{If as o}from"@gem-sdk/system";let ProductSku=({setting:s,builderProps:d,styles:i})=>{let m=t(),{isPreviewSharePageMode:u}=r();i?.disableHoverColor&&delete i.underlineLink;let p=s?.label&&s.label.trim().length?`${s.label} ${m?.sku??""}`:`${m?.sku??""}`,n=u?"":e("p",{className:"gp-p-2 gp-text-center gp-text-sm gp-font-semibold gp-text-gray-500",children:"This product does not have a SKU 123"});return e("div",{id:`sku-${d?.uid}`,children:o(!m?.sku,n,e(l,{builderProps:d,styles:i,setting:{...s,text:p,excludeFlex:!0}}))})};export{ProductSku as default};
