feat(lesson): add lesson modal
This commit is contained in:
35
src/types/lesson.ts
Normal file
35
src/types/lesson.ts
Normal 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[];
|
||||
}
|
||||
Reference in New Issue
Block a user