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