UNPKG

@payfit/unity-components

Version:

24 lines (23 loc) 632 B
import { RawNavItem as e } from "../../../../components/nav/parts/RawNavItem.js"; import { jsx as t } from "react/jsx-runtime"; import { createLink as n } from "@tanstack/react-router"; //#region src/integrations/tanstack-router/components/nav-item/NavItem.tsx var r = n(e); function i({ prefixElement: n, suffixElement: i, ...a }) { if ("to" in a || "href" in a) { let e = { isCurrent: !0 }; return /* @__PURE__ */ t(r, { ...a, activeProps: e, prefix: n, suffix: i }); } else return /* @__PURE__ */ t(e, { ...a, prefix: n, suffix: i }); } i.displayName = "NavItem"; //#endregion export { i as NavItem };