/**
 * Transactional Email Templates
 *
 * Templates for authentication and onboarding emails (OTP, welcome, password reset).
 */

import type { EmailTemplate } from '../types';

// Placeholder implementations - to be migrated from lib/email.ts
export const createOTPEmail = (
  otp: string,
  language: 'ar' | 'en',
  _name?: string,
  _purpose?: 'login' | 'signup' | 'reset'
): EmailTemplate => {
  return {
    subject: language === 'ar' ? 'رمز التحقق الخاص بك' : 'Your verification code',
    html: `<p>${otp}</p>`,
    text: otp,
  };
};

export const createWelcomeEmail = (
  name: string,
  language: 'ar' | 'en'
): EmailTemplate => {
  return {
    subject: language === 'ar' ? 'مرحباً بك!' : 'Welcome!',
    html: `<p>${language === 'ar' ? 'مرحباً' : 'Hello'} ${name}</p>`,
    text: `${language === 'ar' ? 'مرحباً' : 'Hello'} ${name}`,
  };
};

export const createPasswordResetEmail = (
  otp: string,
  language: 'ar' | 'en'
): EmailTemplate => {
  return {
    subject: language === 'ar' ? 'إعادة تعيين كلمة المرور' : 'Password Reset',
    html: `<p>${otp}</p>`,
    text: otp,
  };
};
