export function generateApprovalEmail(username: string): string {
  const currentYear = new Date().getFullYear();
  return `
      <!DOCTYPE html>
      <html lang="en">
      
      <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>User Approval Notification</title>
        <style>
          /* Reset CSS */
          body,
          html,
          div,
          p,
          h1,
          h2,
          h3,
          h4,
          h5,
          h6,
          a,
          img,
          span,
          table,
          tbody,
          td,
          tr,
          th {
            margin: 0;
            padding: 0;
            border: 0;
            font-family: Arial, sans-serif;
            font-size: 16px;
            line-height: 1.5;
          }
      
          /* Container */
          .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
          }
      
          /* Header */
          .header {
            text-align: center;
            margin-bottom: 20px;
          }
      
          /* Body */
          .body {
            padding: 20px;
            background-color: #f9f9f9;
            border-radius: 5px;
          }
      
          /* Button */
          .btn {
            display: inline-block;
            padding: 10px 20px;
            background-color: #007bff;
            color: #ffffff;
            text-decoration: none;
            border-radius: 5px;
          }
      
          /* Footer */
          .footer {
            text-align: center;
            margin-top: 20px;
          }
        </style>
      </head>
      
      <body>
        <div class="container">
          <div class="header">
            <h1>User Approval Notification</h1>
          </div>
          <div class="body">
            <p>Hello ${username},</p>
            <p>We are pleased to inform you that your account has been approved by the admin. You can now access all the features of our platform.</p>
            <p>If you have any questions or need further assistance, feel free to contact us.</p>
            <p>Best regards,</p>
            <p>The Admin Team</p>
          </div>
          <div class="footer">
            <p style="margin-bottom: 0px;">&copy;${currentYear} All Rights Reserved.</p>
          </div>
        </div>
      </body>
      
      </html>
    `;
}
