UNPKG

@payfit/unity-components

Version:

23 lines (22 loc) 712 B
import { RouterProvider as e } from "../../../../providers/router/RouterProvider.js"; import { ListView as t } from "../../../../components/list-view/ListView.js"; import { useCallback as n } from "react"; import { jsx as r } from "react/jsx-runtime"; import { useMatchRoute as i, useRouter as a } from "@tanstack/react-router"; //#region src/integrations/tanstack-router/components/list-view/ListView.tsx function o(o) { let s = a(), c = i(); return /* @__PURE__ */ r(e, { navigate: (e) => { s.navigate({ to: e }); }, isActive: n((e) => c({ to: e, fuzzy: !0 }) !== !1, [c]), children: /* @__PURE__ */ r(t, { ...o }) }); } o.displayName = "ListView"; //#endregion export { o as ListView };