mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
bd68e47e03
* feat: page verification workflow * feat: refactor page-verification * sync * fix type * fix * fix * notification icon * use full word * accept .license file * - update templates - update migration and notification * fix copy * update audit labels * sync * add space name
35 lines
914 B
TypeScript
35 lines
914 B
TypeScript
import { Section, Text } from '@react-email/components';
|
|
import * as React from 'react';
|
|
import { content, paragraph } from '../css/styles';
|
|
import { EmailButton, MailBody } from '../partials/partials';
|
|
|
|
interface Props {
|
|
pageTitle: string;
|
|
spaceName: string;
|
|
pageUrl: string;
|
|
expiresAt: string;
|
|
}
|
|
|
|
export const VerificationExpiringEmail = ({
|
|
pageTitle,
|
|
spaceName,
|
|
pageUrl,
|
|
expiresAt,
|
|
}: Props) => {
|
|
return (
|
|
<MailBody>
|
|
<Section style={content}>
|
|
<Text style={paragraph}>Hi there,</Text>
|
|
<Text style={paragraph}>
|
|
The page <strong>{pageTitle}</strong> in the{' '}
|
|
<strong>{spaceName}</strong> space needs to be re-verified. The
|
|
verification expires on <strong>{expiresAt}</strong>.
|
|
</Text>
|
|
</Section>
|
|
<EmailButton href={pageUrl}>Review page</EmailButton>
|
|
</MailBody>
|
|
);
|
|
};
|
|
|
|
export default VerificationExpiringEmail;
|