"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.17.8_patch_hash_3qirwkgu3wxhvd6hnr2gb24yzq_@mantine_hooks@7.17.8_react@18.3.1_e5yvlgwhmeykc75dkphi7jou6q/node_modules/@mantine/core/esm/components/NavLink/NavLink.cjs");
const HoverCard = require("../../../node_modules/.pnpm/@mantine_core@7.17.8_patch_hash_3qirwkgu3wxhvd6hnr2gb24yzq_@mantine_hooks@7.17.8_react@18.3.1_e5yvlgwhmeykc75dkphi7jou6q/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;
