blob: 2c8d0202b3193b2d2ff1dba14e3045e08ac6b3ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import { Reload } from "@/utilities";
import { faExclamationTriangle } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Alert, Container, Text } from "@mantine/core";
import { FunctionComponent } from "react";
interface Props {
message: string;
}
const CriticalError: FunctionComponent<Props> = ({ message }) => (
<Container my="xl">
<Alert
title="Something is wrong!"
color="red"
icon={<FontAwesomeIcon icon={faExclamationTriangle} />}
withCloseButton
closeButtonLabel="Reload"
onClose={Reload}
>
<Text color="red">{message}</Text>
</Alert>
</Container>
);
export default CriticalError;
|