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.
bazarr/frontend/src/pages/errors/CriticalError.tsx

27 lines
719 B

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;