mirror of https://github.com/micromata/borgbackup-butler.git

Fin Reinhard
22.27.2019 910bf7b1c1e58c1b8dbe2ae7aeb362af5788a932
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import React from 'react';
import {Modal, ModalBody, ModalHeader} from 'reactstrap';
 
function FailedOverlay({title, text, closeModal, active}) {
    return (
        <Modal isOpen={active} toggle={closeModal}>
            <ModalHeader toggle={closeModal}>{title || 'Fetch failed'}</ModalHeader>
            <ModalBody>
                {text}
            </ModalBody>
        </Modal>
    );
}
 
export default FailedOverlay;