"use client"; import Link from "next/link"; import { useEffect } from "react"; export default function DashboardError({ error, reset, }: { error: globalThis.Error & { digest?: string }; reset: () => void; }) { useEffect(() => { import("posthog-js") .then(({ default: posthog }) => { posthog.captureException(error); }) .catch(() => {}); }, [error]); return (
An error occurred in this section. Your dashboard is still available.