6658 workflows add a first twenty piece email sender (#6965)
This commit is contained in:
29
packages/twenty-emails/src/emails/workflow-action.email.tsx
Normal file
29
packages/twenty-emails/src/emails/workflow-action.email.tsx
Normal file
@ -0,0 +1,29 @@
|
||||
import { BaseEmail } from 'src/components/BaseEmail';
|
||||
import { Title } from 'src/components/Title';
|
||||
import { CallToAction } from 'src/components/CallToAction';
|
||||
|
||||
type WorkflowActionEmailProps = {
|
||||
dangerousHTML?: string;
|
||||
title?: string;
|
||||
callToAction?: {
|
||||
value: string;
|
||||
href: string;
|
||||
};
|
||||
};
|
||||
export const WorkflowActionEmail = ({
|
||||
dangerousHTML,
|
||||
title,
|
||||
callToAction,
|
||||
}: WorkflowActionEmailProps) => {
|
||||
return (
|
||||
<BaseEmail>
|
||||
{title && <Title value={title} />}
|
||||
{dangerousHTML && (
|
||||
<div dangerouslySetInnerHTML={{ __html: dangerousHTML }} />
|
||||
)}
|
||||
{callToAction && (
|
||||
<CallToAction value={callToAction.value} href={callToAction.href} />
|
||||
)}
|
||||
</BaseEmail>
|
||||
);
|
||||
};
|
||||
@ -3,3 +3,4 @@ export * from './emails/delete-inactive-workspaces.email';
|
||||
export * from './emails/password-reset-link.email';
|
||||
export * from './emails/password-update-notify.email';
|
||||
export * from './emails/send-invite-link.email';
|
||||
export * from './emails/workflow-action.email';
|
||||
|
||||
Reference in New Issue
Block a user