import { Tag } from 'antd';
import { STATUS_TAG_CONFIG } from '../../../constants/health';

interface Props {
  status: string;
}

export function StatusTag({ status }: Props) {
  const cfg = STATUS_TAG_CONFIG[status] || { color: 'default' as const, label: status };
  return <Tag color={cfg.color}>{cfg.label}</Tag>;
}
