import type { LiveStatus } from '../api/types';

const LABELS: Record<LiveStatus, string> = {
  clocked_out: 'ODHLÁŠEN',
  working: 'PRACUJE',
  on_break: 'PAUZA',
};

export function StatusBadge({ status }: { status: LiveStatus }) {
  const label = LABELS[status];
  if (status === 'working') return <span className="badge badge-solid">{label}</span>;
  if (status === 'on_break') return <span className="badge badge-dashed">{label}</span>;
  return <span className="badge">{label}</span>;
}
