import { EmailTemplate } from "@jitsu-internal/webapps-shared"; import { Body, Container, Html, Preview, Section, Text } from "@react-email/components"; import React from "react"; import dayjs from "dayjs"; import utc from "dayjs/plugin/utc"; import { main } from "./styles"; import { CheckJobStatusButton, Footer, MetaList } from "./shared"; import { ConnectionStatusNotificationProps } from "../pages/api/admin/notifications"; dayjs.extend(utc); export const ConnectionStatusFirstRunEmail: EmailTemplate = props => { let { name, workspaceName, entityType, entityName, entityFrom, entityTo, tableName, recurringAlertsPeriodHours, detailsUrl, unsubscribeLink, } = props; if (!workspaceName?.toLowerCase().endsWith(" workspace")) { workspaceName += " workspace"; } return ( 🎉 Successful initial run of {entityType} job "{entityName}" in the {workspaceName}
🎉️ The initial job of the connection {entityName} has been SUCCESSFUL
Hi {name || "there"}! Congratulations! The initial job of the connection from {entityFrom} to {entityTo} in the{" "} {workspaceName} has been SUCCESSFUL {recurringAlertsPeriodHours && ( No additional reports will be sent for this connection unless the status changes. )}