import {Heading, Link, Section, Text} from '@react-email/components'; import * as React from 'react'; import {EmailLayout} from '../common/EmailLayout'; import {Footer} from '../common/Footer'; import {Header} from '../common/Header'; interface BillingLimitExceededEmailProps { projectName: string; projectId: string; usage: number; limit: number; sourceType: string; dashboardUrl?: string; landingUrl?: string; } export function BillingLimitExceededEmail({ projectName = 'My Project', projectId = 'proj_example123', usage = 10000, limit = 10000, sourceType = 'Transactional', dashboardUrl = 'https://next-app.useplunk.com', landingUrl = 'https://www.useplunk.com', }: BillingLimitExceededEmailProps) { return (
Email sending paused Your project {projectName} has reached your configured monthly billing limit. Email sending has been paused to prevent charges beyond your set limit.
Usage this month
Emails sent {usage.toLocaleString()} / {limit.toLocaleString()}
{sourceType} emails
All email sending is currently blocked. Your usage will reset at the start of next month, or you can increase your billing limit to resume immediately.
How to resume sending
Increase your billing limit Resume sending immediately by adjusting your monthly limit in billing settings
Wait for monthly reset Your usage will automatically reset at the start of next month
Contact support Need immediate help? Our team is here to assist you
Adjust billing limit
View project dashboard →