import { usePlatformLanguage } from "../i18n/LanguageContext";

export default function StatusBadge({ status, label }: { status: string; label?: string }) {
  const { translateText } = usePlatformLanguage();
  return <span className={`status-badge status-${status.toLowerCase().replace(/_/g, "-")}`}>{translateText(label ?? status)}</span>;
}
