import { Badge } from "@mantine/core"; import { statusColor, statusLabel } from "../presentation"; import type { Task } from "../types"; export function StatusBadge({ status, label }: { status: Task["status"] | "interrupted"; label?: string }) { return {label ?? statusLabel(status)}; }