import { EmailTemplate } from "@jitsu-internal/webapps-shared"; import { Body, Container, Html, Preview, Section, Text, Link } from "@react-email/components"; import React from "react"; import dayjs from "dayjs"; import utc from "dayjs/plugin/utc"; import { main } from "./styles"; import { CheckJobStatusButton, Details, Footer } from "./shared"; import { ConnectionStatusNotificationProps } from "../pages/api/admin/notifications"; dayjs.extend(utc); export const ConnectionDeadLettered: EmailTemplate = props => { let { name, workspaceName, entityType, entityName, entityFrom, entityTo, tableName, incidentDetails, incidentStatus, incidentStartedAt, queueSize, recurringAlertsPeriodHours, detailsUrl, unsubscribeLink, } = props; if (!workspaceName?.toLowerCase().endsWith(" workspace")) { workspaceName += " workspace"; } return ( 🚨 Unrecoverable errors in the connection "{entityName}" of the ${workspaceName}
🚨 Unrecoverable errors in the connection {entityName}
Hi {name || "there"}! Unrecoverable Errors {" "} occurred in the connection from {entityFrom} to {entityTo} in the {workspaceName} Events Affected: {queueSize!.toLocaleString()}
{recurringAlertsPeriodHours ? ( No additional reports will be sent for this connection in {recurringAlertsPeriodHours} hours. ) : ( <> )}