'use client';

import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { ScheduleCalendar, ScheduleEvent } from '@/components/common/ScheduleCalendar';

interface OrderScheduleCardProps {
  events: ScheduleEvent[];
  currentDate: Date;
  selectedDate: Date | null;
  onDateClick: (date: Date) => void;
  onMonthChange: (date: Date) => void;
}

export function OrderScheduleCard({
  events,
  currentDate,
  selectedDate,
  onDateClick,
  onMonthChange,
}: OrderScheduleCardProps) {
  return (
    <Card>
      <CardHeader>
        <CardTitle className="text-lg">발주 스케줄</CardTitle>
      </CardHeader>
      <CardContent>
        <ScheduleCalendar
          events={events}
          badges={[]}
          currentDate={currentDate}
          selectedDate={selectedDate}
          onDateClick={onDateClick}
          onEventClick={() => {}}
          onMonthChange={onMonthChange}
          maxEventsPerDay={5}
          weekStartsOn={0}
          isLoading={false}
        />
      </CardContent>
    </Card>
  );
}