import { useToggle } from "@react-hookz/web"; import { FallbackProps } from "react-error-boundary"; import { RiErrorWarningFill } from "react-icons/ri"; import Button from "src/Components/Button/Button"; import Card from "src/Components/Card/Card"; export default function ErrorCard({ error, resetErrorBoundary }: FallbackProps) { const [showDetails, toggleDetails] = useToggle(false) return (

Ooops...
Looks like something unexpected went wrong, please check your internet connection & try again.

{showDetails &&

{error.name}

{error.message}

{error.stack}

}
) }