2
0
Files
bot/packages/emails/components/Text.tsx
Baptiste Arnaud 1654de3c1f 🧑‍💻 (emails) Add decent emails management
Use mjml-react to generate emails. Put all emails in a independent package.
2022-10-01 07:00:05 +02:00

16 lines
388 B
TypeScript

import { MjmlText, MjmlTextProps, PaddingProps } from '@faire/mjml-react'
import React from 'react'
import { leadingRelaxed, textBase } from '../theme'
export const Text = (props: MjmlTextProps & PaddingProps) => (
<MjmlText
padding="24px 0 0"
fontSize={textBase}
lineHeight={leadingRelaxed}
cssClass="paragraph"
{...props}
>
{props.children}
</MjmlText>
)