export interface Trainer {
    id: number;
    email: string;
    password: string;
    phone: string | null;
    gender: string | null;
    role: string;
    resetToken: string | null;
}

export interface Step {
    id: number;
    type: string;
    title: string;
    content: string | null;
    questionData: any | null;
    videoUrl?: string;
}

export interface Lesson {
    id: number;
    title: string;
    description: string;
    steps: Step[];
}

export interface CourseDetails {
    id: number;
    title: string;
    description: string;
    duration: string;
    price: string;
    discountPrice: string;
    level: string;
    isPublished: boolean;
    trainer: Trainer;
    lessons: Lesson[];
}

export interface Progress {
    lastLesson: {
        id: number;
        title: string;
    } | null;
    lastStep: any | null;
    percent: number;
    completed: boolean;
    updatedAt: string;
}

export interface Enrollment {
    status: string;
    subscribedAt: string;
}

export interface CourseDetailsDataProps {
    enrollment: Enrollment;
    progress: Progress;
    course: CourseDetails;
}