hunk.code_window:   content: string | IEmailBlock[];
     contentType: MessageTemplateContentType;
     payload: string;
   }) {
  
hunk.labels: keep keep add keep
hunk.after_edit:   subject: string;
  
hunk.file_path: apps/web/src/api/content-templates.ts
hunk.type: add
file: import { IEmailBlock, MessageTemplateContentType } from '@novu/shared';
  import { api } from './api.client';
  
  export async function previewEmail({
    content,
    contentType,
    payload,
  }: {
    content: string | IEmailBlock[];
    contentType: MessageTemplateContentType;
    payload: string;
  }) {
    return api.post('/v1/content-templates/preview/email', { content, contentType, payload });
  }
  