import { Heading, Section, Text } from "@react-email/components"; import React from "react"; import { BaseButton } from "./BaseButton"; import { BaseEmailWrapper, BaseEmailWrapperProps } from "./BaseEmailWrapper"; interface SecretRotationFailedTemplateProps extends Omit { rotationType: string; rotationName: string; rotationUrl: string; projectName: string; environment: string; secretPath: string; content: string; } export const SecretRotationFailedTemplate = ({ rotationType, rotationName, rotationUrl, projectName, siteUrl, environment, secretPath, content }: SecretRotationFailedTemplateProps) => { return ( Your {rotationType} rotation {rotationName} failed to rotate
Name {rotationName} Type {rotationType} Project {projectName} Environment {environment} Secret Path {secretPath} Reason: {content}
View in Infisical
); }; export default SecretRotationFailedTemplate; SecretRotationFailedTemplate.PreviewProps = { rotationType: "Auth0 Client Secret", rotationUrl: "https://infisical.com", content: "See Rotation status for details", projectName: "Example Project", secretPath: "/api/secrets", environment: "Production", rotationName: "my-auth0-rotation", siteUrl: "https://infisical.com" } as SecretRotationFailedTemplateProps;