"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const reactBinding = require("@contember/react-binding");
const reactRouting = require("@contember/react-routing");
const Link = reactBinding.Component(({ onClick, to, parameters, Component: Component2, componentProps, target, ...props }) => {
  const InnerComponent = Component2 ?? "a";
  return /* @__PURE__ */ jsxRuntime.jsx(reactRouting.Link, { parameters, to, children: /* @__PURE__ */ jsxRuntime.jsx(InnerComponent, { target, ...componentProps, ...props }) });
});
Link.displayName = "Link";
exports.Link = Link;
//# sourceMappingURL=Link.cjs.map
