UNPKG

@stanfordspezi/spezi-web-design-system

Version:

Stanford Biodesign Digital Health Spezi Web Design System

78 lines (77 loc) 2.16 kB
import { jsx as t, jsxs as s } from "react/jsx-runtime"; import { B as a } from "./Button-CvQ4tVYH.mjs"; import { u as d } from "./SpeziProvider-DjiaU6qz.mjs"; import { c } from "./index-2NvaPZWc.mjs"; import { c as i } from "./createLucideIcon-C8GTh_Qx.mjs"; /** * @license lucide-react v0.488.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const m = [ ["circle", { cx: "6", cy: "19", r: "3", key: "1kj8tv" }], ["path", { d: "M9 19h8.5c.4 0 .9-.1 1.3-.2", key: "1effex" }], ["path", { d: "M5.2 5.2A3.5 3.53 0 0 0 6.5 12H12", key: "k9y2ds" }], ["path", { d: "m2 2 20 20", key: "1ooewy" }], ["path", { d: "M21 15.3a3.5 3.5 0 0 0-3.3-3.3", key: "11nlu2" }], ["path", { d: "M15 5h-4.3", key: "6537je" }], ["circle", { cx: "18", cy: "5", r: "3", key: "gq8acd" }] ], l = i("route-off", m), u = ({ className: e, ...o }) => /* @__PURE__ */ t( "div", { className: c("flex-center bg-muted mb-2 size-20 rounded-full", e), ...o, children: /* @__PURE__ */ t(l, { className: "size-7" }) } ), h = ({ className: e, ...o }) => /* @__PURE__ */ t( "div", { className: c("flex-center grow flex-col gap-1", e), ...o } ), f = ({ className: e, ...o }) => /* @__PURE__ */ t("h1", { className: c("text-2xl font-medium", e), ...o }), p = ({ className: e, ...o }) => /* @__PURE__ */ t("p", { className: c("text-muted-foreground", e), ...o }), x = (e) => /* @__PURE__ */ t(a, { size: "sm", className: "mt-3", asChild: !0, ...e }), j = ({ backPage: e, entityName: o, className: r }) => { const { router: { Link: n } } = d(); return /* @__PURE__ */ s(h, { className: r, children: [ /* @__PURE__ */ t(u, {}), /* @__PURE__ */ s(f, { children: [ "This ", o, " doesn't exist" ] }), /* @__PURE__ */ s(p, { children: [ "Please check your URL or return to ", e.name ] }), /* @__PURE__ */ t(x, { children: /* @__PURE__ */ s(n, { href: e.href, children: [ "Go to ", e.name ] }) }) ] }); }; export { u as N, h as a, f as b, p as c, x as d, j as e };