🧑💻 (emails) Add decent emails management
Use mjml-react to generate emails. Put all emails in a independent package.
This commit is contained in:
15
packages/emails/components/HeroImage.tsx
Normal file
15
packages/emails/components/HeroImage.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import { MjmlImageProps, MjmlImage } from '@faire/mjml-react'
|
||||
import React from 'react'
|
||||
import { borderBase } from '../theme'
|
||||
|
||||
export const HeroImage = (props: MjmlImageProps) => (
|
||||
<MjmlImage
|
||||
cssClass="hero"
|
||||
padding="0"
|
||||
align="left"
|
||||
borderRadius={borderBase}
|
||||
{...props}
|
||||
>
|
||||
{props.children}
|
||||
</MjmlImage>
|
||||
)
|
Reference in New Issue
Block a user