From: Felix from Twenty <noreply@yourdomain.com> Subject: Action needed to prevent workspace deletion <img width="400" alt="Screenshot 2025-01-24 at 16 31 35" src="https://github.com/user-attachments/assets/8350a499-6815-4b00-a4fb-615b2a3b60e0" /> From: Felix from Twenty <noreply@yourdomain.com> Subject: Your workspace has been deleted <img width="456" alt="Screenshot 2025-01-24 at 16 33 15" src="https://github.com/user-attachments/assets/7e392e7c-519c-4b38-ae8c-ab3c9dd72c24" /> closes [284](https://github.com/twentyhq/core-team-issues/issues/284) & [285](https://github.com/twentyhq/core-team-issues/issues/285) - [parent issue](https://github.com/twentyhq/core-team-issues/issues/179) --------- Co-authored-by: etiennejouan <jouan.etienne@gmail.com>
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
import { BaseEmail } from 'src/components/BaseEmail';
|
|
import { CallToAction } from 'src/components/CallToAction';
|
|
import { MainText } from 'src/components/MainText';
|
|
import { Title } from 'src/components/Title';
|
|
|
|
type CleanSuspendedWorkspaceEmailProps = {
|
|
inactiveDaysBeforeDelete: number;
|
|
userName: string;
|
|
workspaceDisplayName: string | undefined;
|
|
};
|
|
|
|
export const CleanSuspendedWorkspaceEmail = ({
|
|
inactiveDaysBeforeDelete,
|
|
userName,
|
|
workspaceDisplayName,
|
|
}: CleanSuspendedWorkspaceEmailProps) => {
|
|
const helloString = userName?.length > 1 ? `Hello ${userName}` : 'Hello';
|
|
|
|
return (
|
|
<BaseEmail width={333}>
|
|
<Title value="Deleted Workspace 🥺" />
|
|
<MainText>
|
|
{helloString},
|
|
<br />
|
|
<br />
|
|
Your workspace <b>{workspaceDisplayName}</b> has been deleted as your
|
|
subscription expired {inactiveDaysBeforeDelete} days ago.
|
|
<br />
|
|
<br />
|
|
All data in this workspace has been permanently deleted.
|
|
<br />
|
|
<br />
|
|
If you wish to use Twenty again, you can create a new workspace.
|
|
</MainText>
|
|
<CallToAction
|
|
href="https://app.twenty.com/"
|
|
value="Create a new workspace"
|
|
/>
|
|
</BaseEmail>
|
|
);
|
|
};
|