Kairo-Jinkendo/frontend/src/components/PriorityBadge.jsx
Lars 0e7184a59e
All checks were successful
Deploy Development / deploy (push) Successful in 43s
Test Suite / pytest-backend (push) Successful in 29s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 12s
AP0.6: Kairo Workspace UX mit Frontend Widget/View Registry und Vitest.
2026-07-05 06:41:23 +02:00

14 lines
393 B
JavaScript

import { PRIORITY_LABELS } from '../constants/status.js'
const VARIANTS = {
low: 'priority-low',
normal: 'priority-normal',
high: 'priority-high',
}
export function PriorityBadge({ priority }) {
const label = PRIORITY_LABELS[priority] || priority
const variant = VARIANTS[priority] || 'priority-normal'
return <span className={`badge priority-badge ${variant}`}>{label}</span>
}