'use strict';
import { jsx } from 'react/jsx-runtime';
import '../client/framework/index.js';
import { cn } from '../../../fd-toolbox/lib/utils.js';
import FrameworkLink from 'next/link.js';

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", {
  value,
  configurable: true
});
function Link({
  href,
  className,
  children,
  onClick,
  openInNewTab,
  id
}) {
  return /* @__PURE__ */jsx(FrameworkLink, {
    id,
    href,
    className: cn("focus-visible:ring-primary outline-none focus-visible:ring-1", className),
    onClick,
    ...(openInNewTab && {
      target: "_blank",
      rel: "noopener noreferrer"
    }),
    children
  });
}
__name(Link, "Link");

export { Link, Link as default };
