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.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/components/NavLink/NavLink.mjs";
import { HoverCard } from "../../../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.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
};
