diff --git a/src/app/global-error.tsx b/src/app/global-error.tsx new file mode 100644 index 0000000..bb62d25 --- /dev/null +++ b/src/app/global-error.tsx @@ -0,0 +1,41 @@ +"use client"; + +export default function GlobalError({ + reset, +}: { + error: Error & { digest?: string }; + reset: () => void; +}) { + return ( + + +

Terjadi Kesalahan

+ + + + ); +} diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx new file mode 100644 index 0000000..9e129d3 --- /dev/null +++ b/src/app/not-found.tsx @@ -0,0 +1,24 @@ +import { Box, Text, Button } from "@mantine/core"; +import Link from "next/link"; + +export default function NotFound() { + return ( + + + 404 - Halaman Tidak Ditemukan + + + + ); +}