Files
docmost/apps/server/src/integrations/transactional/partials/partials.tsx
T
Philipinho eefe63d1cd implement new invitation system
* fix comments on the frontend
* move jwt token service to its own module
* other fixes and updates
2024-05-14 22:55:11 +01:00

49 lines
942 B
TypeScript

import { container, footer, h1, logo, main } from '../css/styles';
import {
Body,
Container,
Head,
Html,
Row,
Section,
Text,
} from '@react-email/components';
import * as React from 'react';
interface MailBodyProps {
children: React.ReactNode;
}
export function MailBody({ children }: MailBodyProps) {
return (
<Html>
<Head />
<Body style={main}>
<MailHeader />
<Container style={container}>{children}</Container>
<MailFooter />
</Body>
</Html>
);
}
export function MailHeader() {
return (
<Section style={logo}>
{/* <Heading style={h1}>docmost</Heading> */}
</Section>
);
}
export function MailFooter() {
return (
<Section style={footer}>
<Row>
<Text style={{ textAlign: 'center', color: '#706a7b' }}>
© {new Date().getFullYear()} Docmost, All Rights Reserved <br />
</Text>
</Row>
</Section>
);
}