import { useState } from "react"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Progress } from "@/components/ui/progress"; import { Badge } from "@/components/ui/badge"; import { Switch } from "@/components/ui/switch"; import { Label } from "@/components/ui/label"; import { CheckCircle, PenTool, Sparkles } from "lucide-react"; import AiTipBanner from "@/components/ai/AiTipBanner"; const grammarItems = [ { rule: "Conditional Sentences (Type 2 & 3)", description: "If + past simple / past perfect for hypothetical situations", level: "B2", completed: true }, { rule: "Passive Voice in Academic Writing", description: "Using passive constructions in formal reports", level: "B2", completed: false }, { rule: "Relative Clauses", description: "Defining vs non-defining relative clauses", level: "B1", completed: true }, { rule: "Subject-Verb Agreement", description: "Complex subjects with prepositional phrases", level: "B1", completed: false }, { rule: "Modal Verbs for Speculation", description: "Must have, could have, might have + past participle", level: "C1", completed: false }, { rule: "Reported Speech", description: "Tense changes and time references in indirect speech", level: "B2", completed: true }, ]; export default function GrammarPage() { const [showCompleted, setShowCompleted] = useState(false); const completed = grammarItems.filter(g => g.completed).length; const filtered = showCompleted ? grammarItems : grammarItems.filter(g => !g.completed); return (
Master grammar rules essential for IELTS.
{g.rule}
{g.description}
Based on your progress, complete Passive Voice and Subject-Verb Agreement this week. At your current pace, you'll finish all B2 grammar by April 15.