1// Spelt out so Tailwind's scanner sees every class.
2const STATUS_DOT_CLASSES: Record<string, string> = {
3 Black: "!text-ink-gray-9",
4 Gray: "!text-gray-500",
5 Blue: "!text-blue-500",
6 Green: "!text-green-500",
7 Red: "!text-red-500",
8 Pink: "!text-pink-500",
9 Orange: "!text-orange-500",
10 Amber: "!text-amber-500",
11 Yellow: "!text-yellow-500",
12 Cyan: "!text-cyan-500",
13 Teal: "!text-teal-500",
14 Violet: "!text-violet-500",
15 Purple: "!text-purple-500",
16};
17
18export function statusDotClass(color?: string | null): string {
19 return STATUS_DOT_CLASSES[color ?? ""] ?? STATUS_DOT_CLASSES.Gray;
20}
21