export function RiskBadge({ score }: { score: number }) {
  let colorClass = 'bg-green-100 text-green-700 dark:bg-green-900 dark:text-green-300'
  if (score >= 70) {
    colorClass = 'bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-300'
  } else if (score >= 50) {
    colorClass = 'bg-yellow-100 text-yellow-700 dark:bg-yellow-900 dark:text-yellow-300'
  }

  return (
    <span className={`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium ${colorClass}`}>
      {score}
    </span>
  )
}
