aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/MessageDialog.tsx
blob: 5c85189dff405c2b605449dd38f13e890bdee735 (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
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;