"use client";

import { useAuth } from "@/contexts/auth-context";
import { ScheduleView } from "./schedule-view";

export function SiswaDashboard() {
  const { user } = useAuth();

  return (
    <div className="space-y-6 p-5">
      <div className="flex flex-col gap-2">
        <h1 className="text-3xl font-bold tracking-tight">Halo, {user?.name} 👋</h1>
        <p className="text-muted-foreground">
          Selamat datang kembali di Dashboard Siswa. Berikut jadwal pelajaran Anda.
        </p>
      </div>

      <div className="border-t pt-6">
        <ScheduleView />
      </div>
    </div>
  );
}
