@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
81 lines (80 loc) • 1.72 kB
JavaScript
import { jsxs as n, jsx as e } from "react/jsx-runtime";
import { B as d } from "./Button-nH76KtOO.mjs";
import { c as s } from "./index-2NvaPZWc.mjs";
import "react";
import { useSpeziContext as c } from "./SpeziProvider.js";
import i from "./route-off-_xrm4G1e.mjs";
const l = ({
className: o,
...t
}) => /* @__PURE__ */ e(
"div",
{
"data-slot": "not-found-icon",
className: s("flex-center bg-muted mb-2 size-20 rounded-full", o),
...t,
children: /* @__PURE__ */ e(i, { className: "size-7" })
}
), m = ({
className: o,
...t
}) => /* @__PURE__ */ e(
"div",
{
"data-slot": "not-found",
className: s("flex-center grow flex-col gap-1", o),
...t
}
), u = ({
className: o,
...t
}) => /* @__PURE__ */ e(
"h1",
{
"data-slot": "not-found-title",
className: s("text-2xl font-medium", o),
...t
}
), f = ({
className: o,
...t
}) => /* @__PURE__ */ e(
"p",
{
"data-slot": "not-found-paragraph",
className: s("text-muted-foreground", o),
...t
}
), h = (o) => /* @__PURE__ */ e(d, { size: "sm", className: "mt-3", asChild: !0, ...o }), C = ({
backPage: o,
entityName: t,
className: r
}) => {
const {
router: { Link: a }
} = c();
return /* @__PURE__ */ n(m, { className: r, children: [
/* @__PURE__ */ e(l, {}),
/* @__PURE__ */ n(u, { children: [
"This ",
t,
" doesn't exist"
] }),
/* @__PURE__ */ n(f, { children: [
"Please check your URL or return to ",
o.name
] }),
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ n(a, { href: o.href, children: [
"Go to ",
o.name
] }) })
] });
};
export {
C as N,
h as a,
m as b,
l as c,
f as d,
u as e
};