2
0

📝 Add v2.26 newsletter

This commit is contained in:
Baptiste Arnaud
2024-06-03 16:35:38 +02:00
parent 9ec3f35382
commit 45aa4c6da5
6 changed files with 171 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { Img, Text, Heading, Section } from '@react-email/components'
import { featureSection, heading, text, image as imageStyle } from '../styles'
type Props = {
title: string
children: React.ReactNode
image?: {
src: string
alt: string
}
}
export const NewsletterSection = ({ title, image, children }: Props) => (
<Section style={featureSection}>
<Heading style={heading}>{title}</Heading>
<Text style={text}>{children}</Text>
{image && <Img src={image.src} alt={image.alt} style={imageStyle} />}
</Section>
)