mirror of
https://github.com/docmost/docmost.git
synced 2026-05-06 22:03:06 +08:00
34 lines
812 B
TypeScript
34 lines
812 B
TypeScript
import { Section, Text } from 'react-email';
|
|
import * as React from 'react';
|
|
import { content, paragraph } from '../css/styles';
|
|
import { EmailButton, MailBody } from '../partials/partials';
|
|
|
|
interface Props {
|
|
actorName: string;
|
|
pageTitle: string;
|
|
pageUrl: string;
|
|
accessLabel: string;
|
|
}
|
|
|
|
export const PermissionGrantedEmail = ({
|
|
actorName,
|
|
pageTitle,
|
|
pageUrl,
|
|
accessLabel,
|
|
}: Props) => {
|
|
return (
|
|
<MailBody>
|
|
<Section style={content}>
|
|
<Text style={paragraph}>Hi there,</Text>
|
|
<Text style={paragraph}>
|
|
<strong>{actorName}</strong> gave you {accessLabel} access to{' '}
|
|
<strong>{pageTitle}</strong>.
|
|
</Text>
|
|
</Section>
|
|
<EmailButton href={pageUrl}>View</EmailButton>
|
|
</MailBody>
|
|
);
|
|
};
|
|
|
|
export default PermissionGrantedEmail;
|