hunk.code_window:     contentType: MessageTemplateContentType;
       content: string | IEmailBlock[];
       payload: any;
     }) => {
       mutateAsync(args).then((result: { html: string }) => {
         setContent(result.html);
  
hunk.labels: keep keep keep keep replace keep
hunk.after_edit:     mutateAsync({
         ...args,
         subject,
       }).then((result: { html: string; subject: string }) => {
  
hunk.file_path: apps/web/src/pages/templates/editor/Preview.tsx
hunk.type: replace
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 });
  }
  