| 1 | 'use client' |
| 2 | |
| 3 | import { useEffect } from 'react' |
| 4 | import { Button } |
| 5 | |
| 6 | export default function GlobalError |
| 7 | error, |
| 8 | reset, |
| 9 | }: { |
| 10 | error: Error |
| 11 | reset: () |
| 12 | }) { |
| 13 | useEffect(() => |
| 14 | console.error(error |
| 15 | }, [error]) |
| 16 | |
| 17 | return ( |
| 18 | <html lang='en |
| 19 | <body className='flex min-h-svh flex-col items-center justify-center gap-8 |
| 20 | <h2 className='font-bold text-2xl |
| 21 | |
| 22 | <Button onClick={ |
| 23 | </body> |
| 24 | </html> |
| 25 | ) |
| 26 | } |