import React from "react"; import { Body, Button, Container, Head, Heading, Hr, Html, Img, Section, Text, Tailwind, Preview, } from "@react-email/components"; interface UsageThresholdUpcomingEnforcementEmailProps { organizationName: string; currentUsage: number; limit: number; billingUrl: string; receiverEmail: string; resetDate: string; // ISO date string } export const UsageThresholdUpcomingEnforcementEmailTemplate = ({ organizationName, currentUsage, limit, billingUrl, receiverEmail, resetDate, }: UsageThresholdUpcomingEnforcementEmailProps) => { // 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 will be suspended for "{organizationName} " - action required
Langfuse
⚠️ Action Required: Usage Limit Enforcement Begins Next Week Your organization "{organizationName}" has exceeded the {limit.toLocaleString()} event limit for the free tier. Beginning next week, we will begin enforcing usage limits. Based on your current usage, your account would be suspended and ingestion would stop.
Current Usage {currentUsage.toLocaleString()} Free tier limit: {limit.toLocaleString()} events
What happens beginning next week? If you remain on the free tier and exceed the limit:

•{" "} New traces, observations, and scores cannot be ingested
• Existing data remains accessible
• Dashboard and analytics continue to work
• API calls to ingestion endpoints will return 403 errors
How to avoid service disruption: •{" "} Upgrade to a paid plan now to ensure uninterrupted operations
• Wait until your usage limit resets on{" "} {formattedResetDate} (though you may exceed it again)
• 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 important notification was sent to {receiverEmail}{" "} regarding upcoming usage enforcement for " {organizationName}". Need immediate help? Simply reply to this email and we'll assist you right away.
); }; export default UsageThresholdUpcomingEnforcementEmailTemplate;