/**
 * Convert a CommunicationStepEnum value to a human-readable label.
 * Example: "REGISTRATION_COMPLETED" -> "Registration Completed"
 */
export function humanizeStep(value: string): string {
  return value
    .toLowerCase()
    .split('_')
    .filter((word) => word.length > 0)
    .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
    .join(' ');
}
