import React from "react"; import { Box, Typography } from "@mui/material"; import SentimentVeryDissatisfiedIcon from "@mui/icons-material/SentimentVeryDissatisfied"; /** * Generic error display component with centered icon and text * @param {Object} props * @param {string} props.error - The error message to display * @param {string} [props.title="Error"] - Optional custom title * @param {Object} [props.sx={}] - Optional additional styles */ const ErrorDisplay = ({ error, title = "Error", sx = {} }) => { return ( {title} {error} ); }; export default ErrorDisplay;