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