2019-06-19 14:40:52 +00:00
|
|
|
import Card from "@material-ui/core/Card";
|
|
|
|
import CardContent from "@material-ui/core/CardContent";
|
|
|
|
import Typography from "@material-ui/core/Typography";
|
2019-08-09 10:26:22 +00:00
|
|
|
import React from "react";
|
2019-08-26 21:54:03 +00:00
|
|
|
import { FormattedMessage } from "react-intl";
|
2019-06-19 14:40:52 +00:00
|
|
|
interface ErrorMessageCardProps {
|
|
|
|
message: string;
|
|
|
|
}
|
|
|
|
|
2019-11-07 11:34:54 +00:00
|
|
|
const ErrorMessageCard: React.FC<ErrorMessageCardProps> = ({ message }) => (
|
2019-06-19 14:40:52 +00:00
|
|
|
<Card>
|
|
|
|
<CardContent>
|
|
|
|
<Typography variant="h5" component="h2">
|
2019-08-26 21:54:03 +00:00
|
|
|
<FormattedMessage defaultMessage="Error" description="header" />
|
2019-06-19 14:40:52 +00:00
|
|
|
</Typography>
|
|
|
|
<Typography variant="body2">{message}</Typography>
|
|
|
|
</CardContent>
|
|
|
|
</Card>
|
|
|
|
);
|
|
|
|
ErrorMessageCard.displayName = "ErrorMessageCard";
|
|
|
|
export default ErrorMessageCard;
|