-
Notifications
You must be signed in to change notification settings - Fork 125
/
DeleteMessageModal.jsx
35 lines (32 loc) · 1.07 KB
/
DeleteMessageModal.jsx
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
import React from 'react';
import PropTypes from 'prop-types';
import { VaModal } from '@department-of-veterans-affairs/component-library/dist/react-bindings';
import { Prompts } from '../../util/constants';
const DeleteMessageModal = props => {
return (
<VaModal
id="delete-message-modal"
modalTitle={Prompts.Message.DELETE_MESSAGE_CONFIRM}
onCloseEvent={props.onClose}
onPrimaryButtonClick={props.onDelete}
onSecondaryButtonClick={props.onClose}
primaryButtonText="Confirm"
secondaryButtonText="Cancel"
visible={props.visible}
status="warning"
data-testid="delete-message-modal"
data-dd-action-name="Delete Message Modal Closed"
>
<div className="modal-body" data-testid="delete-message-confirm-note">
<p>{Prompts.Message.DELETE_MESSAGE_CONFIRM_NOTE}</p>
</div>
</VaModal>
);
};
DeleteMessageModal.propTypes = {
id: PropTypes.number,
visible: PropTypes.bool,
onClose: PropTypes.func,
onDelete: PropTypes.func,
};
export default DeleteMessageModal;