-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c986c7
commit a1b1bb0
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"use client"; | ||
|
||
import { useEffect } from "react"; | ||
|
||
export default function Error({ error, reset }: { error: Error; reset: () => void }) { | ||
useEffect(() => { | ||
console.error(error); | ||
}, [error]); | ||
|
||
return ( | ||
<main className="app-main gap-middle flex flex-col items-center justify-center"> | ||
<h2 className="text-base font-medium text-white">Oops, something went wrong !</h2> | ||
<button | ||
onClick={reset} | ||
className="px-large py-small rounded text-sm font-normal text-white transition-colors hover:bg-white/10" | ||
> | ||
Try again | ||
</button> | ||
</main> | ||
); | ||
} |