mirror of
https://github.com/docmost/docmost.git
synced 2026-08-30 10:26:25 +08:00
42 lines
1.0 KiB
TypeScript
42 lines
1.0 KiB
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;
|
|
spaceName: string;
|
|
pageUrl: string;
|
|
comment?: string;
|
|
}
|
|
|
|
export const ApprovalRejectedEmail = ({
|
|
actorName,
|
|
pageTitle,
|
|
spaceName,
|
|
pageUrl,
|
|
comment,
|
|
}: Props) => {
|
|
return (
|
|
<MailBody>
|
|
<Section style={content}>
|
|
<Text style={paragraph}>Hi there,</Text>
|
|
<Text style={paragraph}>
|
|
<strong>{actorName}</strong> returned{' '}
|
|
<strong>{pageTitle}</strong> in the{' '}
|
|
<strong>{spaceName}</strong> space for revision.
|
|
</Text>
|
|
{comment && (
|
|
<Text style={{ ...paragraph, fontStyle: 'italic' }}>
|
|
“{comment}”
|
|
</Text>
|
|
)}
|
|
</Section>
|
|
<EmailButton href={pageUrl}>View page</EmailButton>
|
|
</MailBody>
|
|
);
|
|
};
|
|
|
|
export default ApprovalRejectedEmail;
|