feat(lesson): add lesson modal

This commit is contained in:
shafin-r
2026-02-01 18:20:03 +06:00
parent 62238cbf8f
commit 2ac88835f9
5 changed files with 280 additions and 54 deletions

35
src/types/lesson.ts Normal file
View File

@ -0,0 +1,35 @@
import type { Topic } from "./sheet";
export type Lesson = {
id: string;
title: string;
thumbnail_url: string;
topic: Topic;
};
export interface LessonsResponse {
data: Lesson[];
pagination: {
page: number;
limit: number;
total: number;
total_pages: number;
};
}
export interface LessonDetails {
title: string;
topic_id: string;
video_url: string;
content: string;
description: string;
thumbnail_url: string;
resources: any[];
id: string;
created_by: {
id: string;
name: string;
email: string;
};
topic: Topic[];
}