'use client';
import{jsx as e,Fragment as r}from"react/jsx-runtime";import{useProduct as t,isEmptyChildren as l}from"@gem-sdk/core";import o from"next/link";import{urlJoin as i}from"../../common/helpers.js";let m=({children:m,href:n,...d})=>{let c=t();return e(o,{title:c?.title,...d,href:c?.handle?i("/products",c.handle):"#",children:e(r,{children:l(m)?c?c.title:null:m})})};export{m as default};
