mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
feat: wip email templates
This commit is contained in:
29
shared/email-components/src/lib/EmailTemplateLayout.tsx
Normal file
29
shared/email-components/src/lib/EmailTemplateLayout.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
import { Html, Head, Body, Preview, Tailwind } from '@react-email/components';
|
||||
import { CSSProperties } from 'react';
|
||||
|
||||
interface EmailTemplateLayoutProps {
|
||||
children?: React.ReactNode;
|
||||
preview: string;
|
||||
}
|
||||
export const EmailTemplateLayout = ({
|
||||
children,
|
||||
preview,
|
||||
}: EmailTemplateLayoutProps) => {
|
||||
return (
|
||||
<Html lang="en">
|
||||
<Head />
|
||||
<Preview>{preview}</Preview>
|
||||
|
||||
<Tailwind>
|
||||
<Body style={bodyStyle}>{children}</Body>
|
||||
</Tailwind>
|
||||
</Html>
|
||||
);
|
||||
};
|
||||
|
||||
const bodyStyle: CSSProperties = {
|
||||
backgroundColor: '#F5F5F5',
|
||||
fontFamily:
|
||||
'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif',
|
||||
padding: '40px 0',
|
||||
};
|
||||
Reference in New Issue
Block a user