"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
;/* empty css                                                                                                                                                                                           */
;/* empty css                                                                                                                                                                                            */
;/* empty css                                                                                                                                                                                                    */
;/* empty css                                                                                                                                                                                               */
;/* empty css                                                                                                                                                                                               */
const NavLink = require("../../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/components/NavLink/NavLink.cjs");
const HoverCard = require("../../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/components/HoverCard/HoverCard.cjs");
const NavItemBase = ({ tooltip, ...restProps }) => {
  const navlink = /* @__PURE__ */ jsxRuntime.jsx(NavLink.NavLink, { ...restProps, noWrap: true, childrenOffset: "xl" });
  if (tooltip) {
    return /* @__PURE__ */ jsxRuntime.jsxs(HoverCard.HoverCard, { shadow: "md", width: 300, withArrow: true, withinPortal: true, children: [
      /* @__PURE__ */ jsxRuntime.jsx(HoverCard.HoverCard.Target, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: navlink }) }),
      /* @__PURE__ */ jsxRuntime.jsx(HoverCard.HoverCard.Dropdown, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: tooltip }) })
    ] });
  }
  return navlink;
};
exports.NavItemBase = NavItemBase;
