+
Contact consent
+ {isNil(contact.consentData) ? (
+
+ There is no consent data available for this contact
+
+ ) : (
+
+ {`This contact has ${consentGiven ? 'given' : 'not given'} consent to be contacted.`}
+
+ )}
+
+ )
+}
+
+export default ConsentDetails
diff --git a/src/client/modules/Contacts/ContactDetails/ContactDetails.jsx b/src/client/modules/Contacts/ContactDetails/ContactDetails.jsx
index 89ece6364d3..399cac32f9b 100644
--- a/src/client/modules/Contacts/ContactDetails/ContactDetails.jsx
+++ b/src/client/modules/Contacts/ContactDetails/ContactDetails.jsx
@@ -7,8 +7,6 @@ import { ContactResource } from '../../../components/Resource'
import { SummaryTable, ErrorSummary } from '../../../components'
import urls from '../../../../lib/urls'
import {
- EMAIL_CONSENT_NO,
- EMAIL_CONSENT_YES,
LEFT_COMPANY_OPTION,
NO_CONTACT_OPTION,
ROLE_CHANGE_OPTION,
@@ -16,6 +14,7 @@ import {
import { ID, TASK_ARCHIVE_CONTACT } from './state'
import ArchiveForm from '../../../components/ArchiveForm'
import ContactLayout from '../../../components/Layout/ContactLayout'
+import ConsentDetails from './ConsentDetails'
const getAddress = (contact, companyAddress) => {
const address = contact.addressSameAsCompany
@@ -82,14 +81,6 @@ const ContactDetails = ({ contactId, companyAddress, permissions }) => (
children={contact.notes}
/>
) : null}
-