Files
twenty_crm/packages/twenty-emails/src/components/MainText.tsx
Nabhag Motivaras 7eec64b6e0 have footer on emails (#11300)
# ISSUE 

- Closes #9622

---------

Co-authored-by: Félix Malfait <felix@twenty.com>
2025-04-03 14:26:19 +02:00

20 lines
524 B
TypeScript

import { Text } from '@react-email/components';
import { emailTheme } from 'src/common-style';
type MainTextProps = {
children: JSX.Element | JSX.Element[] | string;
};
const mainTextStyle = {
fontFamily: emailTheme.font.family,
fontSize: emailTheme.font.size.md,
fontWeight: emailTheme.font.weight.regular,
color: emailTheme.font.colors.primary,
lineHeight: emailTheme.font.lineHeight,
};
export const MainText = ({ children }: MainTextProps) => {
return <Text style={mainTextStyle}>{children}</Text>;
};