import type { Goal } from "../../types/goal"; export type GoalStatusPresentation = { label: string; fill: string; stroke: string; text: string; }; const PRESENTATIONS: Partial> = { waiting_children: { label: "等待子任务", fill: "#fffbeb", stroke: "#f59e0b", text: "#92400e", }, pending_review: { label: "待审核", fill: "#f5f3ff", stroke: "#8b5cf6", text: "#6d28d9", }, failed: { label: "失败", fill: "#fef2f2", stroke: "#ef4444", text: "#b91c1c", }, }; export const goalStatusPresentation = ( status: Goal["status"], ): GoalStatusPresentation | undefined => PRESENTATIONS[status];