Files
twenty/packages/twenty-emails/src/components/HighlightedText.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

23 lines
647 B
TypeScript

import { Text } from '@react-email/components';
import { JSX } from 'react';
import { emailTheme } from 'src/common-style';
const highlightedStyle = {
borderRadius: emailTheme.border.radius.sm,
background: emailTheme.background.colors.highlight,
padding: '4px 8px',
fontSize: emailTheme.font.size.lg,
fontWeight: emailTheme.font.weight.bold,
color: emailTheme.font.colors.highlighted,
};
type HighlightedTextProps = {
value: JSX.Element | JSX.Element[] | string | undefined;
centered?: boolean;
};
export const HighlightedText = ({ value }: HighlightedTextProps) => {
return <Text style={highlightedStyle}>{value}</Text>;
};