mirror of
https://github.com/docmost/docmost.git
synced 2026-05-21 01:04:39 +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
39 lines
991 B
TypeScript
39 lines
991 B
TypeScript
import { Link, Section, Text } from '@react-email/components';
|
|
import * as React from 'react';
|
|
import { content, link, paragraph } from '../css/styles';
|
|
import { EmailButton, getGreetingName, MailBody } from '../partials/partials';
|
|
|
|
interface Props {
|
|
userName: string;
|
|
actorName: string;
|
|
pageTitle: string;
|
|
pageUrl: string;
|
|
spaceName: string;
|
|
}
|
|
|
|
export const PageUpdateEmail = ({
|
|
userName,
|
|
actorName,
|
|
pageTitle,
|
|
pageUrl,
|
|
spaceName,
|
|
}: Props) => {
|
|
return (
|
|
<MailBody>
|
|
<Section style={content}>
|
|
<Text style={paragraph}>Hi {getGreetingName(userName)},</Text>
|
|
<Text style={paragraph}>
|
|
<strong>{actorName}</strong> updated{' '}
|
|
<Link href={pageUrl} style={link}>
|
|
<strong>{pageTitle}</strong>
|
|
</Link>{' '}
|
|
in the <strong>{spaceName}</strong> space.
|
|
</Text>
|
|
</Section>
|
|
<EmailButton href={pageUrl}>View page</EmailButton>
|
|
</MailBody>
|
|
);
|
|
};
|
|
|
|
export default PageUpdateEmail;
|