@tmlmobilidade/emails
Version:
17 lines (16 loc) • 571 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
/* * */
import colors from '../../styles/colors.js';
import { fontSize, fontWeight } from '../../styles/font.js';
import { Text } from 'react-email';
import styles from './styles.js';
/* * */
export function Paragraph({ bold, children, color = 'prose', size = 'lg' }) {
return (_jsx(Text, { style: {
...styles.text,
color: colors[color].foreground,
fontSize: fontSize[size],
fontWeight: bold ? fontWeight.bold : fontWeight.normal,
}, children: children }));
}
;