You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ErrorMessageComponent.tsx 298B

1234567891011121314
  1. import { Typography } from '@mui/material';
  2. import React from 'react';
  3. interface IProps {
  4. error: string;
  5. }
  6. const ErrorMessageComponent: React.FC<IProps> = ({ error }) => (
  7. <Typography variant="body1" color="error" my={2}>
  8. {error}
  9. </Typography>
  10. );
  11. export default ErrorMessageComponent;