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

Kai Reinhard
15.07.2019 eeb5db743dfed0254074da61d70199add8ecaff9
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;