diff --git a/emails/file_expiry.tsx b/emails/file_expiry.tsx deleted file mode 100644 index 2a6d6a4..0000000 --- a/emails/file_expiry.tsx +++ /dev/null @@ -1,70 +0,0 @@ -import { - Hr, - Link, - Section, - Text -} from "@react-email/components"; -import { z } from "zod"; -import { WATcloudEmail } from "./_common/watcloud-email"; - -const WATcloudOnboardingEmailProps = z.object({ - name: z.string(), - machines: z.array(z.string()), - paths: z.array(z.array(z.string())), - daysForExpiry: z.string(), - deletionDate: z.string() -}); - -type WATcloudOnboardingEmailProps = z.infer; - -export const WATcloudOnboardingEmail = (props: WATcloudOnboardingEmailProps) => { - const { name, machines, paths, daysForExpiry, deletionDate} = WATcloudOnboardingEmailProps.parse(props); - - const previewText = `Welcome to WATcloud! Your access has been updated.`; - const expiredPaths = ( -
- {machines.map((machine, index) => ( - - ))} -
- ) - - return ( - - Hi {name}, - - As per efforts to clean up WATO's file drives, we're looking to delete directories that haven't been used in {daysForExpiry} days. - -
-
- The following paths on each respective machine are expired: - {expiredPaths} -
-
- - If you do not use or access any of these directories, then they will be automatically deleted on {deletionDate}. - - - If you have any questions, please reach out to your WATcloud contact or the WATcloud team at infra-outreach@watonomous.ca. - -
- ); -}; - -WATcloudOnboardingEmail.PreviewProps = { - name: "John Doe", - services: ["Compute Cluster", "Discord", "Google Workspace"], - machines: ["delta-ubuntu2", "tr-ubuntu3"], - paths: [["home/john/watcloud-emails", "home/john/temp"], ["home/john/temp2"]], - daysForExpiry: "70", - deletionDate: "2025-01-01" -} as WATcloudOnboardingEmailProps; - -export default WATcloudOnboardingEmail; \ No newline at end of file