2023-04-20 00:01:50 -05:00
|
|
|
'use client';
|
|
|
|
|
|
|
|
|
|
import styles from './error.module.css';
|
|
|
|
|
|
|
|
|
|
export default function GlobalError({
|
|
|
|
|
error,
|
|
|
|
|
reset,
|
|
|
|
|
}: {
|
|
|
|
|
error: Error;
|
|
|
|
|
reset: () => void;
|
|
|
|
|
}) {
|
2026-03-26 15:22:04 -05:00
|
|
|
console.error(error);
|
|
|
|
|
|
2023-04-20 00:01:50 -05:00
|
|
|
return (
|
|
|
|
|
<div className={styles.container}>
|
|
|
|
|
<h2>Something went wrong!</h2>
|
|
|
|
|
<a className={styles.navLink} onClick={() => reset()}>
|
|
|
|
|
Try again
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|