import { Button, Typography } from "@mui/material"; import React from "react"; interface ErrorDisplayProps { error: any; onRetry?: () => void; onExit?: () => void; } const ErrorDisplay = ({ error, onRetry, onExit }: ErrorDisplayProps) => { if (!error) return null; return (