MCPcopy
hub / github.com/freeCodeCamp/freeCodeCamp / EmailOptions

Function EmailOptions

client/src/components/email-options.tsx:69–105  ·  view source on GitHub ↗
({
  isSignedIn,
  updateQuincyEmail,
  isPage
}: EmailOptionsProps)

Source from the content-addressed store, hash-verified

67}
68
69function EmailOptions({
70 isSignedIn,
71 updateQuincyEmail,
72 isPage
73}: EmailOptionsProps) {
74 const { t } = useTranslation();
75
76 return (
77 <>
78 <Row>
79 <Col xs={12}>
80 {isPage ? (
81 <h1 className='text-center'>{t('misc.email-signup')}</h1>
82 ) : (
83 <h2 className='text-center'>{t('misc.email-signup')}</h2>
84 )}
85 <Spacer size='xs' />
86 </Col>
87 </Row>
88
89 <Row>
90 <Col
91 {...(isPage ? { md: 8, mdOffset: 2, sm: 10, smOffset: 1 } : {})}
92 xs={12}
93 >
94 <p>{t('misc.email-blast')}</p>
95 <span className='message-author'>{t('misc.quincy')}</span>
96 <Spacer size='m' />
97 </Col>
98 </Row>
99 <EmailListOptIn
100 isSignedIn={isSignedIn}
101 updateQuincyEmail={updateQuincyEmail}
102 />
103 </>
104 );
105}
106
107export default EmailOptions;

Callers

nothing calls this directly

Calls 1

useTranslationFunction · 0.90

Tested by

no test coverage detected