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