"use client" import { useState } from "react" import { NavColorPicker } from "@/components/gmail/nav/nav-color-picker" import { Popover, PopoverContent, PopoverTrigger, } from "@/components/ui/popover" import { cn } from "@/lib/utils" import { normalizeNavColorClass } from "@/lib/nav-color" export function NavColorPickerTrigger({ value, onChange, rounded = "full", className, "aria-label": ariaLabel = "Couleur", }: { value: string onChange: (swatch: string) => void rounded?: "sm" | "full" className?: string "aria-label"?: string }) { const [open, setOpen] = useState(false) const colorClass = normalizeNavColorClass(value) const isFull = rounded === "full" return ( { onChange(sw) setOpen(false) }} /> ) }