mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
23 lines
451 B
TypeScript
23 lines
451 B
TypeScript
import { Modal } from 'antd';
|
|
import { FC } from 'react';
|
|
|
|
export type FatalErrorStateModalProps = {
|
|
title: string;
|
|
message: string;
|
|
};
|
|
|
|
export const FatalErrorStateModal: FC<FatalErrorStateModalProps> = ({ title, message }) => (
|
|
<Modal
|
|
title={title}
|
|
open
|
|
footer={null}
|
|
closable={false}
|
|
keyboard={false}
|
|
width={900}
|
|
centered
|
|
className="modal"
|
|
>
|
|
<p style={{ fontSize: '1.3rem' }}>{message}</p>
|
|
</Modal>
|
|
);
|