import { jsx, jsxs } from "react/jsx-runtime";
/* empty css                                                                                                                                                                                          */
/* empty css                                                                                                                                                                                           */
/* empty css                                                                                                                                                                                                   */
/* empty css                                                                                                                                                                                              */
/* empty css                                                                                                                                                                                              */
import { NavLink } from "../../../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.mjs";
import { HoverCard } from "../../../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.mjs";
const NavItemBase = ({ tooltip, ...restProps }) => {
  const navlink = /* @__PURE__ */ jsx(NavLink, { ...restProps, noWrap: true, childrenOffset: "xl" });
  if (tooltip) {
    return /* @__PURE__ */ jsxs(HoverCard, { shadow: "md", width: 300, withArrow: true, withinPortal: true, children: [
      /* @__PURE__ */ jsx(HoverCard.Target, { children: /* @__PURE__ */ jsx("span", { children: navlink }) }),
      /* @__PURE__ */ jsx(HoverCard.Dropdown, { children: /* @__PURE__ */ jsx("span", { children: tooltip }) })
    ] });
  }
  return navlink;
};
export {
  NavItemBase
};
