hunk.code_window:     return colors.error;
     }
     if (status === JobStatusEnum.COMPLETED) {
       return colors.success;
     }
     return theme.colorScheme === 'dark' ? colors.B60 : colors.B40;
  
hunk.labels: keep keep keep replace keep keep keep keep
hunk.after_edit:   if (status === ExecutionDetailsStatusEnum.SUCCESS) {
  
hunk.file_path: apps/web/src/components/activity/helpers.ts
hunk.type: replace
file: import { JobStatusEnum, StepTypeEnum } from '@novu/shared';
  import { MantineTheme } from '@mantine/core';
  
  import { colors } from '../../design-system';
  import { Chat, Check, Digest, InApp, Mail, Sms, Timer } from '../../design-system/icons';
  
  export const getColorByStatus = (theme: MantineTheme, status: JobStatusEnum): string => {
    if (status === JobStatusEnum.FAILED) {
      return colors.error;
    }
  
    if (status === JobStatusEnum.COMPLETED) {
      return colors.success;
    }
  
    return theme.colorScheme === 'dark' ? colors.B60 : colors.B40;
  };
  
  export const getCheckLogo = (): React.FunctionComponent<React.ComponentPropsWithoutRef<'svg'>> => {
    return Check;
  };
  
  export const getLogoByType = (
    type: StepTypeEnum
  ): React.FunctionComponent<React.ComponentPropsWithoutRef<'svg'>> | null => {
    if (type == StepTypeEnum.DELAY) {
      return Timer;
    }
  
    if (type == StepTypeEnum.DIGEST) {
      return Digest;
    }
  
    if (type === StepTypeEnum.EMAIL) {
      return Mail;
    }
  
    if (type === StepTypeEnum.SMS) {
      return Sms;
    }
  
    if (type === StepTypeEnum.IN_APP) {
      return InApp;
    }
  
    if (type === StepTypeEnum.CHAT) {
      return Chat;
    }
  
    return null;
  };
  