Initial commit

This commit is contained in:
Takeshi Kimata
2024-02-03 19:53:09 +09:00
commit 1eba1b190a
34 changed files with 6294 additions and 0 deletions

30
frontend/app/error.tsx Normal file
View File

@@ -0,0 +1,30 @@
"use client";
import { useEffect } from "react";
export default function Error({
error,
reset,
}: {
error: Error;
reset: () => void;
}) {
useEffect(() => {
// Log the error to an error reporting service
console.error(error);
}, [error]);
return (
<div>
<h2>Something went wrong!</h2>
<button
onClick={
// Attempt to recover by trying to re-render the segment
() => reset()
}
>
Try again
</button>
</div>
);
}