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
14 lines
393 B
JavaScript
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>
|
|
}
|