import { Link, Text } from '@react-email/components' import { baseStyles } from '@/components/emails/_styles' import { EmailLayout } from '@/components/emails/components' import { getBaseUrl } from '@/lib/core/utils/urls' import { getBrandConfig } from '@/ee/whitelabeling' interface PlanWelcomeEmailProps { planName: string userName?: string loginLink?: string } export function PlanWelcomeEmail({ planName, userName, loginLink }: PlanWelcomeEmailProps) { const brand = getBrandConfig() const baseUrl = getBaseUrl() const cta = loginLink || `${baseUrl}/login` const previewText = `${brand.name}: Your ${planName} plan is active` return ( {userName ? `Hi ${userName},` : 'Hi,'} Welcome to {planName}! You're all set to build, test, and scale your workflows. Open {brand.name} Want help getting started?{' '} Schedule a call {' '} with our team. {/* Divider */}
Manage your subscription in Settings → Subscription. ) } export default PlanWelcomeEmail