mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-17 12:20:04 +00:00
- Mobile responsive - new toast design - web document render issue fix - posthog analytics - ui improvements
27 lines
696 B
TypeScript
27 lines
696 B
TypeScript
"use client" // Error boundaries must be Client Components
|
|
|
|
import { Button } from "@ui/components/button"
|
|
import { Title1Bold } from "@ui/text/title/title-1-bold"
|
|
import { useRouter } from "next/navigation"
|
|
import { useEffect } from "react"
|
|
|
|
export default function NotFound({
|
|
error,
|
|
}: {
|
|
error: Error & { digest?: string }
|
|
}) {
|
|
const router = useRouter()
|
|
useEffect(() => {
|
|
// Log the error to an error reporting service
|
|
console.error(error)
|
|
}, [error])
|
|
|
|
return (
|
|
<html lang="en">
|
|
<body className="flex flex-col items-center justify-center h-screen">
|
|
<Title1Bold>Page not found</Title1Bold>
|
|
<Button onClick={() => router.back()}>Go back</Button>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|