
import Link from "next/link"
import { Calendar, FilePlus, MessageSquare, Settings } from "lucide-react"

import { Button } from "@/shared/components/ui/button"
import { Card, CardContent, CardHeader, CardTitle } from "@/shared/components/ui/card"

interface ClassQuickActionsProps {
  classId: string
}

export function ClassQuickActions({ classId }: ClassQuickActionsProps) {
  return (
    <Card>
      <CardHeader>
        <CardTitle className="text-base font-semibold">Quick Actions</CardTitle>
      </CardHeader>
      <CardContent className="grid gap-2">
        <Button asChild className="w-full justify-start" size="sm">
          <Link href={`/teacher/homework/assignments/create?classId=${encodeURIComponent(classId)}`}>
            <FilePlus className="mr-2 h-4 w-4" />
            Create Homework
          </Link>
        </Button>
        <Button asChild variant="outline" className="w-full justify-start" size="sm">
          <Link href={`/teacher/classes/schedule?classId=${encodeURIComponent(classId)}`}>
            <Calendar className="mr-2 h-4 w-4" />
            Manage Schedule
          </Link>
        </Button>
        <Button variant="outline" className="w-full justify-start" size="sm" disabled>
          <MessageSquare className="mr-2 h-4 w-4" />
          Message Class (Coming soon)
        </Button>
        <Button variant="outline" className="w-full justify-start" size="sm" disabled>
          <Settings className="mr-2 h-4 w-4" />
          Class Settings
        </Button>
      </CardContent>
    </Card>
  )
}
