'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("next/link"),t=require("@gem-sdk/core"),i=require("../../helpers.js");exports.default=({children:l,dataId:n,...s})=>{let{isPreviewSharePageMode:d}=t.useRenderMode(),u={title:s.title,"data-id":n},o=s.href?.toString();return d?e.jsx("a",{...u,...s,href:o,onClick:()=>{i.handleClickLink({link:o,type:o?.startsWith("#el")?"open-popup":void 0})},children:l}):e.jsx(r,{...u,...s,children:l})};
