File size: 488 Bytes
5da4770
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export const uuid = (): string =>
  new Date().getTime().toString(36) + Math.random().toString(36).slice(2);

export const getStepLabel = (stepNumber: number): string => {
  return `Step ${stepNumber}`;
};

export const getConditionLabel = (conditionType: 'if' | 'elseif' | 'else'): string => {
  switch (conditionType) {
    case 'if':
      return 'If';
    case 'elseif':
      return 'Else If';
    case 'else':
      return 'Otherwise';
    default:
      return 'Condition';
  }
};