-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathNotFound.tsx
More file actions
26 lines (25 loc) · 734 Bytes
/
NotFound.tsx
File metadata and controls
26 lines (25 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { Link } from '@tanstack/solid-router'
import type { JSX } from 'solid-js'
export function NotFound(props?: { children?: JSX.Element }) {
return (
<div class="space-y-2 p-2">
<div>
{props?.children || 'The page you are looking for does not exist.'}
</div>
<p class="flex items-center gap-2 flex-wrap">
<button
onClick={() => window.history.back()}
class="bg-cyan-600 text-white px-2 py-1 rounded uppercase font-black text-sm"
>
Go back
</button>
<Link
to="/"
class="bg-cyan-600 text-white px-2 py-1 rounded uppercase font-black text-sm"
>
Start Over
</Link>
</p>
</div>
)
}