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

30 lines
789 B
TypeScript

import { Column, Container, Row } from '@react-email/components';
import React from 'react';
import { emailTheme } from 'src/common-style';
type HighlightedContainerProps = {
children: JSX.Element | JSX.Element[] | string;
};
const highlightedContainerStyle = {
background: emailTheme.background.colors.highlight,
border: `1px solid ${emailTheme.border.color.highlighted}`,
borderRadius: emailTheme.border.radius.md,
padding: '24px 48px',
} as React.CSSProperties;
export const HighlightedContainer = ({
children,
}: HighlightedContainerProps) => {
return (
<Container style={highlightedContainerStyle}>
{React.Children.map(children, (child) => (
<Row>
<Column align="center">{child}</Column>
</Row>
))}
</Container>
);
};