"use client"; import { Check } from "lucide-react"; import { cn } from "@/lib/utils"; import { GROUP_COLORS, type GroupColorKey } from "@/lib/colors"; import { isDarkTheme } from "@/components/theme/use-dark-theme"; export function ColorSwatchPicker({ value, onChange, }: { value: GroupColorKey; onChange: (key: GroupColorKey) => void; }) { const isDark = isDarkTheme(); return (
{GROUP_COLORS.map((color) => { const selected = color.key === value; return ( ); })}
); }