"use client";

import { cn } from "@/lib/utils";
import { type ConflictStatus, conflictBadgeColors, conflictLabels } from "./constants";

interface StatusBadgeProps {
  status: ConflictStatus;
}

export function StatusBadge({ status }: StatusBadgeProps) {
  return (
    <span
      className={cn(
        "text-xs font-semibold px-2 py-0.5 rounded",
        conflictBadgeColors[status]
      )}
    >
      {conflictLabels[status]}
    </span>
  );
}
