diff --git a/packages/twenty-server/src/workspace/emails/clean-inactive-workspace.email.tsx b/packages/twenty-server/src/workspace/emails/clean-inactive-workspace.email.tsx
index 68aa4e935a3..5f1888a65fc 100644
--- a/packages/twenty-server/src/workspace/emails/clean-inactive-workspace.email.tsx
+++ b/packages/twenty-server/src/workspace/emails/clean-inactive-workspace.email.tsx
@@ -1,12 +1,10 @@
import * as React from 'react';
-import { Html } from '@react-email/html';
-import { Container, Heading } from '@react-email/components';
-import { BaseHead } from 'src/workspace/emails/components/BaseHead';
import { HighlightedText } from 'src/workspace/emails/components/HighlightedText';
-import { CallToAction } from 'src/workspace/emails/components/CallToAction';
import { MainText } from 'src/workspace/emails/components/MainText';
-import { Logo } from 'src/workspace/emails/components/Logo';
+import { Title } from 'src/workspace/emails/components/Title';
+import { BaseEmail } from 'src/workspace/emails/components/BaseEmail';
+import { CallToAction } from 'src/workspace/emails/components/CallToAction';
export const CleanInactiveWorkspaceEmail = ({
title,
@@ -17,30 +15,26 @@ export const CleanInactiveWorkspaceEmail = ({
const daysLeftInfo = daysLeft > 1 ? `${daysLeft} days left` : `One day left`;
return (
-
-
-
-
- {title}
-
-
- Hello {userName},
-
-
- It appears that there has been a period of inactivity on your{' '}
- {workspaceDisplayName} workspace.
-
-
- Please note that the account is due for deactivation soon, and all
- associated data within this workspace will be deleted.
-
-
- No need for concern, though! Simply log in to your workspace within
- the next 10 days to retain access.
-
-
-
-
+
+
+
+
+ Hello {userName},
+
+
+ It appears that there has been a period of inactivity on your{' '}
+ {workspaceDisplayName} workspace.
+
+
+ Please note that the account is due for deactivation soon, and all
+ associated data within this workspace will be deleted.
+
+
+ No need for concern, though! Simply log in to your workspace within the
+ next 10 days to retain access.
+
+
+
);
};
diff --git a/packages/twenty-server/src/workspace/emails/components/BaseEmail.tsx b/packages/twenty-server/src/workspace/emails/components/BaseEmail.tsx
new file mode 100644
index 00000000000..94997e6f896
--- /dev/null
+++ b/packages/twenty-server/src/workspace/emails/components/BaseEmail.tsx
@@ -0,0 +1,17 @@
+import * as React from 'react';
+import { Container, Html } from '@react-email/components';
+
+import { BaseHead } from 'src/workspace/emails/components/BaseHead';
+import { Logo } from 'src/workspace/emails/components/Logo';
+
+export const BaseEmail = ({ children }) => {
+ return (
+
+
+
+
+ {children}
+
+
+ );
+};
diff --git a/packages/twenty-server/src/workspace/emails/components/Title.tsx b/packages/twenty-server/src/workspace/emails/components/Title.tsx
new file mode 100644
index 00000000000..1b5aed29a0d
--- /dev/null
+++ b/packages/twenty-server/src/workspace/emails/components/Title.tsx
@@ -0,0 +1,6 @@
+import { Heading } from '@react-email/components';
+import * as React from 'react';
+
+export const Title = ({ value }) => {
+ return {value};
+};