import {useEffect} from 'react'; import {ApiForm, InputField} from 'sentry/components/forms'; import RadioBoolean from 'sentry/components/forms/controls/radioBoolean'; import FieldWrapper from 'sentry/components/forms/field/fieldWrapper'; 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.')} } )} field={fieldProps => ( )} /> ); } export default NewsletterConsent;