"use client";
import {
  __esm
} from "./chunk-GGWZFCYS.js";

// src/embed-shims/next-link.tsx
import {
  forwardRef
} from "react";
import { jsx } from "react/jsx-runtime";
function registerLink(component) {
  impl = component;
}
var impl, Link, next_link_default;
var init_next_link = __esm({
  "src/embed-shims/next-link.tsx"() {
    impl = null;
    Link = forwardRef(function NextLinkShim(props, ref) {
      if (impl) {
        const Real = impl;
        return /* @__PURE__ */ jsx(Real, { ref, ...props });
      }
      const {
        href,
        children,
        prefetch: _prefetch,
        replace: _replace,
        scroll: _scroll,
        shallow: _shallow,
        passHref: _passHref,
        legacyBehavior: _legacyBehavior,
        locale: _locale,
        ...rest
      } = props;
      const hrefStr = typeof href === "string" ? href : href?.pathname ? href.pathname : void 0;
      return /* @__PURE__ */ jsx("a", { ref, href: hrefStr, ...rest, children });
    });
    next_link_default = Link;
  }
});

export {
  registerLink,
  next_link_default,
  init_next_link
};
//# sourceMappingURL=chunk-OHPI2HRK.js.map