import {useEffect} from 'react'; import {ApiForm} from 'sentry/components/forms'; import FieldWrapper from 'sentry/components/forms/field/fieldWrapper'; import RadioField from 'sentry/components/forms/fields/radioField'; import ExternalLink from 'sentry/components/links/externalLink'; import NarrowLayout from 'sentry/components/narrowLayout'; import {t, tct} from 'sentry/locale'; type Props = { onSubmitSuccess?: () => void; }; function NewsletterConsent({onSubmitSuccess}: Props) { useEffect(() => { document.body.classList.add('auth'); return () => document.body.classList.remove('auth'); }, []); // NOTE: the text here is duplicated within ``RegisterForm`` on the backend return ( {t('Pardon the interruption, we just need to get a quick answer from you.')} } )} /> ); } export default NewsletterConsent;