({
baseUrl = getBaseUrl(),
messageId,
showUnsubscribe = true,
}: EmailFooterProps)
| 23 | * by the mailer when sending. |
| 24 | */ |
| 25 | export function EmailFooter({ |
| 26 | baseUrl = getBaseUrl(), |
| 27 | messageId, |
| 28 | showUnsubscribe = true, |
| 29 | }: EmailFooterProps) { |
| 30 | const brand = getBrandConfig() |
| 31 | const isWhitelabeled = brand.isWhitelabeled |
| 32 | |
| 33 | const footerLinkStyle = { |
| 34 | color: colors.textMuted, |
| 35 | textDecoration: 'underline', |
| 36 | fontWeight: 'normal' as const, |
| 37 | fontFamily: typography.fontFamily, |
| 38 | } |
| 39 | |
| 40 | return ( |
| 41 | <Section |
| 42 | style={{ |
| 43 | backgroundColor: colors.footerBg, |
| 44 | width: '100%', |
| 45 | }} |
| 46 | > |
| 47 | <Container style={{ maxWidth: `${spacing.containerWidth}px`, margin: '0 auto' }}> |
| 48 | <table |
| 49 | cellPadding={0} |
| 50 | cellSpacing={0} |
| 51 | border={0} |
| 52 | width='100%' |
| 53 | style={{ minWidth: `${spacing.containerWidth}px` }} |
| 54 | > |
| 55 | <tbody> |
| 56 | <tr> |
| 57 | <td style={baseStyles.spacer} height={32}> |
| 58 | |
| 59 | </td> |
| 60 | </tr> |
| 61 | |
| 62 | {/* Social links row — hidden for whitelabeled instances */} |
| 63 | {!isWhitelabeled && ( |
| 64 | <> |
| 65 | <tr> |
| 66 | <td style={baseStyles.gutter} width={spacing.gutter}> |
| 67 | |
| 68 | </td> |
| 69 | <td> |
| 70 | <table cellPadding={0} cellSpacing={0} style={{ border: 0 }}> |
| 71 | <tbody> |
| 72 | <tr> |
| 73 | <td align='left' style={{ padding: '0 8px 0 0' }}> |
| 74 | <Link href={`${baseUrl}/x`} rel='noopener noreferrer'> |
| 75 | <Img |
| 76 | src={`${baseUrl}/static/x-icon.png`} |
| 77 | width='20' |
| 78 | height='20' |
| 79 | alt='X' |
| 80 | /> |
| 81 | </Link> |
| 82 | </td> |
nothing calls this directly
no test coverage detected