import { useBoardStore } from "@/stores/board-store"; import type { Priority } from "@/types/board"; const PRIORITIES: { value: Priority; label: string; color: string }[] = [ { value: "none", label: "None", color: "oklch(50% 0 0 / 30%)" }, { value: "low", label: "Low", color: "oklch(60% 0.15 240)" }, { value: "medium", label: "Medium", color: "oklch(70% 0.15 85)" }, { value: "high", label: "High", color: "oklch(60% 0.15 55)" }, { value: "urgent", label: "Urgent", color: "oklch(55% 0.15 25)" }, ]; interface PriorityPickerProps { cardId: string; priority: Priority; } export function PriorityPicker({ cardId, priority }: PriorityPickerProps) { const updateCard = useBoardStore((s) => s.updateCard); return (

Priority

{PRIORITIES.map(({ value, label, color }) => ( ))}
); }