MCPcopy Create free account
hub / github.com/dailydotdev/apps / Custom404

Function Custom404

packages/shared/src/components/Custom404.tsx:34–80  ·  view source on GitHub ↗
({
  children,
  showRecoveryLinks = false,
}: Custom404Props)

Source from the content-addressed store, hash-verified

32];
33
34export default function Custom404({
35 children,
36 showRecoveryLinks = false,
37}: Custom404Props): ReactElement {
38 return (
39 <PageContainer
40 className="min-h-page !items-center justify-center"
41 data-testid="notFound"
42 >
43 {children}
44 <div className="flex w-full max-w-[26.25rem] flex-col items-center gap-6 text-center">
45 <Image
46 className="h-40 w-40 object-contain"
47 src={cloudinaryCharm404}
48 alt="404 - Page not found"
49 loading="lazy"
50 />
51 <h1 className="font-bold typo-large-title">Why are you here?</h1>
52 <p className="text-text-tertiary typo-callout">
53 You’re not supposed to be here.
54 </p>
55 <Link href="/" passHref>
56 <Button tag="a" variant={ButtonVariant.Primary}>
57 Go home
58 </Button>
59 </Link>
60
61 {showRecoveryLinks && (
62 <nav aria-label="Other places to go">
63 <ul className="flex flex-wrap items-center justify-center gap-x-4 gap-y-2">
64 {recoveryLinks.map(({ label, href }) => (
65 <li key={href}>
66 <a
67 href={href}
68 className="text-text-tertiary underline typo-footnote hover:text-text-primary"
69 >
70 {label}
71 </a>
72 </li>
73 ))}
74 </ul>
75 </nav>
76 )}
77 </div>
78 </PageContainer>
79 );
80}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected