"use client"; import { RiErrorWarningFill } from "@remixicon/react"; import Link from "next/link"; import { useEffect } from "react"; import { Button } from "@/components/ui/button"; import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, } from "@/components/ui/empty"; export default function ErrorComponent({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { useEffect(() => { // Log the error to an error reporting service console.error(error); }, [error]); return (
Algo deu errado Ocorreu um problema inesperado. Por favor, tente novamente ou volte para o dashboard.
); }