Files
web/app/[lang]/(live)/(protected)/my-pages/profile/@profile/error.tsx
2024-12-19 10:35:20 +00:00

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>
}