import React from "react"; import { Body, Button, Container, Head, Heading, Hr, Html, Img, Section, Text, Tailwind, Preview, } from "@react-email/components"; interface UsageThresholdSuspensionEmailProps { organizationName: string; currentUsage: number; limit: number; billingUrl: string; receiverEmail: string; resetDate: string; // ISO date string } export const UsageThresholdSuspensionEmailTemplate = ({ organizationName, currentUsage, limit, billingUrl, receiverEmail, resetDate, }: UsageThresholdSuspensionEmailProps) => { // Format reset date as "January 15, 2024" const formattedResetDate = new Date(resetDate).toLocaleDateString("en-US", { year: "numeric", month: "long", day: "numeric", timeZone: "UTC", }); return ( 🚨 URGENT: Ingestion suspended for "{organizationName}" - limit exceeded
Langfuse
⚠️ Ingestion Suspended Your organization "{organizationName}" has exceeded the {limit.toLocaleString()} event limit for the free tier. Data ingestion has been suspended.
Current Usage {currentUsage.toLocaleString()} Free tier limit: {limit.toLocaleString()} events
What's affected? •{" "} New traces, observations, and scores cannot be ingested
• Existing data remains accessible
• Dashboard and analytics continue to work
• API calls to ingestion endpoints return 403 errors
How to resolve: Upgrade now to resume ingestion immediately
• Or wait until your usage limit resets on{" "} {formattedResetDate}
• Contact support for custom plans and enterprise options
Upgrade to Core at only $29/month When you upgrade, you can:
• Add unlimited number of users
• Retain data for 90 days
• Access unlimited evaluators
• Get support via Email/Chat
Startup Program: Eligible startups get 50% off for their first year.{" "} Learn more →

This urgent notification was sent to {receiverEmail} regarding ingestion suspension for "{organizationName}". Need immediate help? Simply reply to this email and we'll assist you right away.
); }; export default UsageThresholdSuspensionEmailTemplate;