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

export function CountryFlag({ code, className }: { code: Market; className?: string }) {
  return (
    <span
      className={cn(
        "inline-grid h-6 min-w-8 place-items-center rounded border border-gold/40 bg-ivory font-mono text-[10px] font-semibold text-bordeaux-deep",
        className
      )}
      aria-label={`Marché ${code}`}
    >
      {code}
    </span>
  );
}
