18 lines
367 B
TypeScript
18 lines
367 B
TypeScript
"use client"
|
|
|
|
import * as Sentry from "@sentry/nextjs"
|
|
import { useEffect } from "react"
|
|
|
|
import type { ErrorPage } from "@/types/next/error"
|
|
|
|
export default function ProfileError({ error }: ErrorPage) {
|
|
useEffect(() => {
|
|
if (!error) return
|
|
|
|
console.error(error)
|
|
Sentry.captureException(error)
|
|
}, [error])
|
|
|
|
return <h1>Error happened, Profile</h1>
|
|
}
|