'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@gem-sdk/core"),t=require("next/link"),l=require("../../common/helpers.js");exports.default=({children:i,href:u,...n})=>{let s=r.useProduct();return e.jsx(t,{title:s?.title,...n,href:s?.handle?l.urlJoin("/products",s.handle):"#",children:e.jsx(e.Fragment,{children:r.isEmptyChildren(i)?s?s.title:null:i})})};
