import type { EducationLevelKey } from '../store/schoolSettings';

/**
 * Returns the appropriate room‑terminology label for a given education level.
 * - Primary → "Class Room"
 * → Secondary → "Class Room"
 * → High School → "Class Room"
 * → Tertiary → "Course Room"
 *
 * This mirrors the terminology used in the UI:
 *   Primary/Secondary use "Class" (e.g., "Form / Class").
 *   Tertiary uses "Course".
 */
export function getRoomTerm(level: EducationLevelKey): string {
  switch (level) {
    case 'primary':
    case 'secondary':
    case 'high_school':
      return 'Class Room';
    case 'tertiary':
      return 'Course Room';
    default:
      // Fallback – should never happen with the typed enum
      return 'Class Room';
  }
}