"use client"; import { useState } from "react"; import type { IssueStatus, UpdateIssueRequest } from "@multica/types"; import { ALL_STATUSES, STATUS_CONFIG } from "@/features/issues/config"; import { StatusIcon } from "../status-icon"; import { PropertyPicker, PickerItem } from "./property-picker"; export function StatusPicker({ status, onUpdate, }: { status: IssueStatus; onUpdate: (updates: Partial) => void; }) { const [open, setOpen] = useState(false); const cfg = STATUS_CONFIG[status]; return ( {cfg.label} } > {ALL_STATUSES.map((s) => { const c = STATUS_CONFIG[s]; return ( { onUpdate({ status: s }); setOpen(false); }} > {c.label} ); })} ); }