import { Skeleton } from "@/shared/components/ui/skeleton";

export default function CalendarLoading() {
  return (
    <div className="p-6 space-y-4">
      <div className="flex items-center justify-between">
        <div className="space-y-2">
          {/* arbitrary-value: skeleton placeholder fixed size */}
          <Skeleton className="h-8 w-[180px]" />
          {/* arbitrary-value: skeleton placeholder fixed size */}
          <Skeleton className="h-4 w-[260px]" />
        </div>
        {/* arbitrary-value: skeleton placeholder fixed size */}
        <Skeleton className="h-9 w-[120px]" />
      </div>
      <div className="flex items-center justify-between">
        <div className="flex items-center gap-2">
          <Skeleton className="h-9 w-9" />
          <Skeleton className="h-9 w-9" />
          {/* arbitrary-value: skeleton placeholder fixed size */}
          <Skeleton className="h-9 w-[80px]" />
          {/* arbitrary-value: skeleton placeholder fixed size */}
          <Skeleton className="h-4 w-[200px] ml-2" />
        </div>
        {/* arbitrary-value: skeleton placeholder fixed size */}
        <Skeleton className="h-9 w-[160px]" />
      </div>
      <div className="grid grid-cols-7 gap-2">
        {Array.from({ length: 7 }).map((_, i) => (
          <div key={i} className="flex flex-col">
            <Skeleton className="h-6 w-full" />
            {/* arbitrary-value: skeleton placeholder fixed size */}
            <div className="flex-1 min-h-[200px] space-y-1 pt-1">
              <Skeleton className="h-8 w-full" />
              <Skeleton className="h-8 w-full" />
            </div>
          </div>
        ))}
      </div>
    </div>
  );
}
