mirror of
https://github.com/docmost/docmost.git
synced 2026-05-20 00:14:10 +08:00
eefe63d1cd
* fix comments on the frontend * move jwt token service to its own module * other fixes and updates
49 lines
942 B
TypeScript
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>
|
|
);
|
|
}
|