import { Link, useParams, useNavigate } from "react-router-dom"; import { ArrowLeft, Plus, FileText, LayoutGrid, PlayCircle, ClipboardCheck, ChevronRight, ArrowRight, X, } from "lucide-react"; import { Button } from "../../components/ui/button"; import { Card } from "../../components/ui/card"; import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger, DialogClose, } from "../../components/ui/dialog"; import { Input } from "../../components/ui/input"; import uploadIcon from "../../assets/icons/upload.png"; export function CourseManagementPage() { const navigate = useNavigate(); const { programType, courseId } = useParams<{ programType: string; courseId: string; }>(); // Mock data for display titles const courseTitles: Record = { duolingo: "Duolingo English Test", ielts: "IELTS Academic", }; const courseDisplayName = courseTitles[courseId || ""] || "Duolingo English Test"; const units = [ { id: "unit1", name: "Greetings & Introductions", description: "Learn basic greetings, self-introductions, and polite expressions in everyday situations.", modules: 3, videos: 9, practices: 9, gradient: "linear-gradient(135deg, rgba(158, 40, 145, 0.5) 0%, rgba(158, 40, 145, 0.8) 100%)", }, { id: "unit2", name: "Speaking", description: "Core speaking practice and skill building for natural pronunciation and fluency.", modules: 3, videos: 9, practices: 9, gradient: "linear-gradient(135deg, rgba(79, 70, 229, 0.5) 0%, rgba(79, 70, 229, 0.8) 100%)", }, { id: "unit3", name: "Reading", description: "Reading comprehension and vocabulary improvement through various text types.", modules: 3, videos: 9, practices: 9, gradient: "linear-gradient(135deg, rgba(124, 58, 237, 0.5) 0%, rgba(124, 58, 237, 0.8) 100%)", }, ]; return (
{/* Navigation */} Back to Courses {/* Header section */}

{courseDisplayName}

Manage units and modules inside the {courseDisplayName}

Create Courses
Upload icon

Click to upload {" "} or drag and drop

JPG, PNG (MAX 1 MB)

{/* Horizontal Divider */}