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