blob: b739ebc7275a82e5ceabe56f837f47d3d1abdb24 (
plain) (
blame)
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
27
28
29
30
31
32
33
|
import React from 'react';
import '@css/Dialog.css';
interface MessageDialogProps {
title: string;
subtitle: string;
onClose: () => void;
}
const MessageDialog: React.FC<MessageDialogProps> = ({
title,
subtitle,
onClose,
}) => {
return (
<div className="dimmer">
<div className="dialog">
<div className="dialog-element dialog-header">
<span>{title}</span>
</div>
<div className="dialog-element dialog-description">
<span>{subtitle}</span>
</div>
<div className="dialog-element dialog-btns-container">
<button onClick={onClose}>Close</button>
</div>
</div>
</div>
);
};
export default MessageDialog;
|