import { Chip } from '@mui/material'

const SENSITIVITY_META: Record<string, { label: string; color: string }> = {
  PUBLIC:       { label: 'Öffentlich',    color: '#64748b' },
  INTERNAL:     { label: 'Intern',        color: '#d97706' },
  CONFIDENTIAL: { label: 'Vertraulich',   color: '#c0392b' },
  RESTRICTED:   { label: 'Eingeschränkt', color: '#7c3aed' },
}

export function SensitivityBadge({ level }: { level: string }) {
  const meta = SENSITIVITY_META[level] ?? { label: level, color: '#64748b' }
  return (
    <Chip
      label={meta.label}
      size="small"
      sx={{ bgcolor: meta.color, color: 'white', fontWeight: 600, fontSize: 10 }}
    />
  )
}
