hunk.code_window:           <When truthy={view === 'mobile'}>
               <Grid>
                 <Grid.Col span={12}>
                   <PreviewMobile subject={subject} content={content} integration={integration} />
                 </Grid.Col>
               </Grid>
             </When>
           </Grid.Col>
           <Grid.Col span={3} p={0}>
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:                 <PreviewMobile subject={parsedSubject} content={content} integration={integration} />
  
hunk.file_path: apps/web/src/pages/templates/editor/Preview.tsx
hunk.type: replace
file: import { IMessage, ButtonTypeEnum } from '@novu/shared';
  
  export function sendUrlChange(url: string) {
    if (!window.parentIFrame) return;
    window.parentIFrame.sendMessage({
      type: 'url_change',
      url,
    });
  }
  
  export function sendNotificationClick(notification: IMessage) {
    if (!window.parentIFrame) return;
    window.parentIFrame.sendMessage({
      type: 'notification_click',
      notification,
    });
  }
  
  export function unseenChanged(unseenCount: number) {
    if ('parentIFrame' in window) {
      // eslint-disable-next-line @typescript-eslint/no-explicit-any
      (window as any).parentIFrame.sendMessage({
        type: 'unseen_count_changed',
        count: unseenCount,
      });
    }
  }
  
  export function actionClick(templateIdentifier: string, type: ButtonTypeEnum, notification: IMessage) {
    if ('parentIFrame' in window) {
      // eslint-disable-next-line @typescript-eslint/no-explicit-any
      (window as any).parentIFrame.sendMessage({
        type: 'action_click',
        templateIdentifier,
        resultType: type,
        notification,
      });
    }
  }
  