@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
7 lines (6 loc) • 1.73 kB
JavaScript
;const o=require("react/jsx-runtime"),l=require("./Button-CTJ3Li3o.js"),x=require("./SpeziProvider-BW6pacsq.js"),n=require("./index-DwV9MiDB.js"),h=require("./createLucideIcon-DpotSgUx.js");/**
* @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 N=[["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"}]],m=h.createLucideIcon("route-off",N),s=({className:e,...t})=>o.jsx("div",{className:n.cn("flex-center bg-muted mb-2 size-20 rounded-full",e),...t,children:o.jsx(m,{className:"size-7"})}),c=({className:e,...t})=>o.jsx("div",{className:n.cn("flex-center grow flex-col gap-1",e),...t}),r=({className:e,...t})=>o.jsx("h1",{className:n.cn("text-2xl font-medium",e),...t}),d=({className:e,...t})=>o.jsx("p",{className:n.cn("text-muted-foreground",e),...t}),u=e=>o.jsx(l.Button,{size:"sm",className:"mt-3",asChild:!0,...e}),j=({backPage:e,entityName:t,className:i})=>{const{router:{Link:a}}=x.useSpeziContext();return o.jsxs(c,{className:i,children:[o.jsx(s,{}),o.jsxs(r,{children:["This ",t," doesn't exist"]}),o.jsxs(d,{children:["Please check your URL or return to ",e.name]}),o.jsx(u,{children:o.jsxs(a,{href:e.href,children:["Go to ",e.name]})})]})};exports.NotFound=j;exports.NotFoundAction=u;exports.NotFoundContainer=c;exports.NotFoundIcon=s;exports.NotFoundParagraph=d;exports.NotFoundTitle=r;