Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 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 34 35 36 37 38 39 40 41 42 43 44 45 | 79x 3x 79x | import Modal from "react-bootstrap/Modal";
import { Button } from "react-bootstrap";
export default function CopyConceptGraphModal({
showModal,
toggleShowModal,
onConfirm,
testId = "CopyConceptGraphModal",
}) {
const hideModal = () => {
toggleShowModal(false);
};
return (
<Modal
show={showModal}
onHide={hideModal}
centered={true}
data-testid={testId}
>
<Modal.Header closeButton>Copy Concept Graph</Modal.Header>
<Modal.Body>
This will replace ALL content in the Concept Graph, and erase all User
State; are you sure?
</Modal.Body>
<Modal.Footer>
<Button
variant="secondary"
onClick={hideModal}
data-testid={`${testId}-no-button`}
>
No, keep current content
</Button>
<Button
variant="danger"
onClick={onConfirm}
data-testid={`${testId}-yes-button`}
>
Yes, replace all content
</Button>
</Modal.Footer>
</Modal>
);
}
|