import { Heading, Section, Text, } from '@react-email/components'; import { EmailLayout } from './components/EmailLayout'; import { Card } from './components/Card'; import { Button } from './components/Button'; import { theme } from './theme'; interface ReferralSignupEmailProps { userName?: string; referredUserName?: string; referralCode?: string; } export const ReferralSignupEmail = ({ userName = 'Kirubel', referredUserName = 'Alex Martinez', referralCode = 'AMB-KIRU-2024', }: ReferralSignupEmailProps) => { return (
New Referral Signup! 👋 Hi {userName}, Great news! {referredUserName} has signed up for AmbaPay using your referral code {referralCode}.
Referred User: {referredUserName}
Referral Code Used: {referralCode}
Status: Account Created ✓
Next Steps You'll earn referral points once {referredUserName} completes their first transaction. Keep an eye out for your reward notification!
Keep sharing your referral code to earn more points and help grow the AmbaPay community!
Best regards,
The AmbaPay Team
); }; const heading = { color: theme.colors.primary, fontSize: '28px', fontWeight: '700', margin: '0 0 24px', }; const text = { color: theme.colors.textDark, fontSize: '16px', lineHeight: '24px', margin: '0 0 16px', }; const detailRow = { display: 'flex', justifyContent: 'space-between', marginBottom: '12px', paddingBottom: '12px', borderBottom: `1px solid ${theme.colors.border}`, }; const detailLabel = { color: theme.colors.text, fontSize: '14px', fontWeight: '600', margin: '0', flex: '1', }; const detailValue = { color: theme.colors.textDark, fontSize: '14px', margin: '0', textAlign: 'right' as const, flex: '1', }; const statusRow = { display: 'flex', justifyContent: 'space-between', marginTop: '12px', paddingTop: '12px', borderTop: `2px solid ${theme.colors.accent}`, }; const statusLabel = { color: theme.colors.primary, fontSize: '14px', fontWeight: '600', margin: '0', flex: '1', }; const statusValue = { color: theme.colors.primary, fontSize: '14px', fontWeight: '600', margin: '0', textAlign: 'right' as const, flex: '1', }; const infoBox = { backgroundColor: theme.colors.accentLightest, borderRadius: '8px', padding: '16px', margin: '24px 0', borderLeft: `4px solid ${theme.colors.accent}`, }; const infoTitle = { color: theme.colors.primary, fontSize: '16px', fontWeight: '600', margin: '0 0 8px', }; const infoText = { color: theme.colors.textDark, fontSize: '14px', lineHeight: '22px', margin: '0', }; const buttonSection = { textAlign: 'center' as const, margin: '32px 0', }; ReferralSignupEmail.PreviewProps = { userName: 'Kirubel', referredUserName: 'Alex Martinez', referralCode: 'AMB-KIRU-2024', } as ReferralSignupEmailProps; export default ReferralSignupEmail;