import { Button } from '@mui/material'; import { Alert } from '@mui/material'; import type React from 'react'; interface IApiErrorProps { className?: string; onClick: () => void; text: string; style?: React.CSSProperties; } const ApiError: React.FC = ({ className, onClick, text, ...rest }) => { return ( TRY AGAIN } severity='error' {...rest} > {text} ); }; export default ApiError;