llama1's picture
Upload 781 files
5da4770 verified
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';
}
};