@payfit/unity-components
Version:
22 lines (21 loc) • 645 B
JavaScript
import { RawNavigationCard as e } from "../../../../components/navigation-card/NavigationCard.js";
import { jsx as t } from "react/jsx-runtime";
import { createLink as n } from "@tanstack/react-router";
//#region src/integrations/tanstack-router/components/navigation-card/NavigationCard.tsx
var r = n(e);
function i({ prefixElement: n, suffixElement: i, ...a }) {
return "to" in a || "href" in a ? /* @__PURE__ */ t(r, {
...a,
asElement: "a",
prefix: n,
suffix: i
}) : /* @__PURE__ */ t(e, {
...a,
asElement: "button",
prefix: n,
suffix: i
});
}
i.displayName = "NavigationCard";
//#endregion
export { i as NavigationCard };