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 capitalize from "lodash/capitalize"; import { CheckJobStatusButton, Footer, MetaList } from "./shared"; import { ConnectionStatusNotificationProps } from "../pages/api/admin/notifications"; dayjs.extend(utc); export const ConnectionStatusRecoveredEmail: EmailTemplate = props => { let { name, workspaceName, entityType, entityName, entityFrom, entityTo, tableName, incidentStatus, incidentStartedAt, queueSize, recurringAlertsPeriodHours, detailsUrl, unsubscribeLink, } = props; if (!workspaceName?.toLowerCase().endsWith(" workspace")) { workspaceName += " workspace"; } return ( ✅ {capitalize(entityType)} job "{entityName}" processing restored in the {workspaceName}
✅ {capitalize(entityType)} job processing of the connection {entityName} has been RESTORED
Hi {name || "there"}! The last job of the connection from {entityFrom} to {entityTo} has been SUCCESSFUL in the {workspaceName} {recurringAlertsPeriodHours && ( No additional reports will be sent for this connection unless the status changes. )}