"use client";

import { cn } from "@/lib/utils";
import type { Week } from "@/lib/types";

interface WeekBadgeProps {
  week: Week;
  className?: string;
}

export function WeekBadge({ week, className }: WeekBadgeProps) {
  return (
    <span
      className={cn(
        "inline-flex items-center justify-center px-4 py-1.5 rounded-full text-sm font-semibold uppercase tracking-wide text-white",
        {
          "bg-week2": week === 2,
          "bg-week3": week === 3,
        },
        className
      )}
    >
      Semaine {week}
    </span>
  );
}
