mirror of
https://github.com/docmost/docmost.git
synced 2026-07-27 11:54:47 +10:00
39 lines
979 B
TypeScript
39 lines
979 B
TypeScript
import { Link, Section, Text } from 'react-email';
|
|
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;
|