Made several changes across different files primarily focusing on readability. Arranged CSS classes in a standardized order for easier reading and maintenance. Arranged and formatted import lines, function declarations, and component return statements for legibility. Removed unnecessary React imports in some files.
30 lines
607 B
TypeScript
30 lines
607 B
TypeScript
import { Container } from '@react-email/components';
|
|
|
|
export function EmailWrapper(
|
|
props: React.PropsWithChildren<{
|
|
className?: string;
|
|
}>,
|
|
) {
|
|
return (
|
|
<Container
|
|
style={{
|
|
backgroundColor: '#fff',
|
|
margin: 'auto',
|
|
fontFamily: 'sans-serif',
|
|
color: '#484848',
|
|
}}
|
|
>
|
|
<Container
|
|
style={{
|
|
maxWidth: '535px',
|
|
backgroundColor: '#fff',
|
|
margin: 'auto',
|
|
}}
|
|
className={'mx-auto my-[36px] px-4 ' + props.className || ''}
|
|
>
|
|
{props.children}
|
|
</Container>
|
|
</Container>
|
|
);
|
|
}
|