2025-09-02 22:09:48 +08:00
|
|
|
import { useState } from "react";
|
2025-08-17 00:49:04 +08:00
|
|
|
import CoursesVideoPlayer from "@/components/CoursesVideoPlayer";
|
|
|
|
|
import CourseList from "@/components/CourseList";
|
2025-08-15 16:16:41 +08:00
|
|
|
import StageProgress from "@/components/StageProgress";
|
2025-09-02 22:09:48 +08:00
|
|
|
import { mockData } from "@/data/mockData";
|
2025-08-15 16:16:41 +08:00
|
|
|
import "./index.css";
|
|
|
|
|
|
|
|
|
|
const LivePage = () => {
|
2025-09-02 22:09:48 +08:00
|
|
|
const [selectedCourse, setSelectedCourse] = useState(null);
|
|
|
|
|
|
|
|
|
|
const handleCourseClick = (course) => {
|
|
|
|
|
setSelectedCourse(course);
|
|
|
|
|
};
|
|
|
|
|
|
2025-08-15 16:16:41 +08:00
|
|
|
return (
|
2025-08-17 00:49:04 +08:00
|
|
|
<div className="live-page">
|
|
|
|
|
<StageProgress />
|
|
|
|
|
<div className="live-page-content">
|
2025-09-02 22:09:48 +08:00
|
|
|
<CoursesVideoPlayer selectedCourse={selectedCourse} teacherData={mockData.teacherData} unitPosters={mockData.unitPosters} />
|
|
|
|
|
<CourseList onCourseClick={handleCourseClick} />
|
2025-08-15 16:16:41 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default LivePage;
|