| 1 | import { Link } from '@tanstack/solid-router' |
| 2 | |
| 3 | export function NotFound({ children }: { children?: any }) { |
| 4 | return ( |
| 5 | <div class="space-y-2 p-2" data-testid="default-not-found-component"> |
| 6 | <div class="text-gray-600 dark:text-gray-400"> |
| 7 | {children || <p>The page you are looking for does not exist.</p>} |
| 8 | </div> |
| 9 | <p class="flex items-center gap-2 flex-wrap"> |
| 10 | <button |
| 11 | onClick={() => window.history.back()} |
| 12 | class="bg-emerald-500 text-white px-2 py-1 rounded-sm uppercase font-black text-sm" |
| 13 | > |
| 14 | Go back |
| 15 | </button> |
| 16 | <Link |
| 17 | to="/" |
| 18 | class="bg-cyan-600 text-white px-2 py-1 rounded-sm uppercase font-black text-sm" |
| 19 | > |
| 20 | Start Over |
| 21 | </Link> |
| 22 | </p> |
| 23 | </div> |
| 24 | ) |
| 25 | } |