import { ApiLog } from 'src/api-logs/entities/api-log.entity';
export function errorMailContent(errorLog: ApiLog): string {
  return `
          <html>
              <head>
                  <style>
                      body {
                          font-family: Arial, sans-serif;
                      }
                      .container {
                          width: 50%;
                          margin: 0 auto;
                          text-align: center;
                          border: 1px solid #ddd;
                          padding: 20px;
                      }
                      .logo {
                          margin-bottom: 20px;
                      }
                      h1 {
                          font-size: 24px;
                          color: #333;
                      }
                      ul {
                          list-style: none;
                          margin: 0;
                          padding: 0;
                          text-align: left;
                      }
                      li {
                          margin-bottom: 10px;
                      }
                  </style>
              </head>
  
              <body>
                  <div class="container">
                      <div class="logo">
                          <img src="cid:unique@cidLogo" alt="Logo">
                      </div>
                      <h1>New Error Log</h1>
                      <ul>
                          <li><strong>Error Code:</strong> ${errorLog.response_code}</li>
                          <li><strong>Message:</strong> ${errorLog.error_message}</li>
                          <li><strong>Error Trace:</strong> ${errorLog.stack_trace}</li>
                      </ul>
                  </div>
              </body>
          </html>
      `;
}
