import { type IconInterface } from '../../../../types/icons';

// Enums
export enum TaskTypes {
  NEW = 'NEW',
  TASK = 'TASK',
  VIDEO = 'VIDEO',
  READING = 'READING',
  EVALUATION = 'EVALUATION',
  BLANK = 'LESSON',
  SCORM = 'SCORM',
}

// General types
export type Task = {
  id: number;
  title: string;
  type: TaskTypes;
};

export type Module = {
  id: number;
  title: string;
  icon: IconInterface;
  tasks: Task[];
};

// Props
export type ModuleAccordionProps = {
  module?: Module;
  loading?: boolean;
};
