import { Body, Button, Container, Head, Heading, Html, Img, Link, Preview, Section, Tailwind, Text, } from "@react-email/components"; import * as React from "react"; export type TemplateProps = { projectName: string; applicationName: string; applicationType: string; errorMessage: string; buildLink: string; date: string; }; export const BuildFailedEmail = ({ projectName = "dokploy", applicationName = "frontend", applicationType = "application", errorMessage = "Error array.length is not a function", buildLink = "https://dokploy.com/projects/dokploy-test/applications/dokploy-test", date = "2023-05-01T00:00:00.000Z", }: TemplateProps) => { const previewText = `Build failed for ${applicationName}`; return ( {previewText}
Dokploy
Build failed for {applicationName} Hello, Your build for {applicationName} failed. Please check the error message below.
Details: Project Name: {projectName} Application Name: {applicationName} Application Type: {applicationType} Date: {date}
Reason: {errorMessage}
or copy and paste this URL into your browser:{" "} {buildLink}
); }; export default BuildFailedEmail;