MCPcopy Index your code
hub / github.com/simstudioai/sim / EmailFooter

Function EmailFooter

apps/sim/components/emails/components/email-footer.tsx:25–251  ·  view source on GitHub ↗
({
  baseUrl = getBaseUrl(),
  messageId,
  showUnsubscribe = true,
}: EmailFooterProps)

Source from the content-addressed store, hash-verified

23 * by the mailer when sending.
24 */
25export 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 &nbsp;
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 &nbsp;
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>

Callers

nothing calls this directly

Calls 2

getBaseUrlFunction · 0.90
getBrandConfigFunction · 0.90

Tested by

no test coverage detected