import React from "react"; import { CircleCheckIcon, CircleIcon } from "lucide-react"; import { Button } from "@/src/components/ui/button"; import { cn } from "@/src/utils/tailwind"; export const LabelCommandItem = (props: { label: string; selectedLabels: string[]; setSelectedLabels: React.Dispatch>; }) => { const { label, selectedLabels, setSelectedLabels } = props; const handleLabelChange = () => { setSelectedLabels((prev) => { return prev.includes(label) ? prev.filter((l) => l !== label) : [...prev, label]; }); }; const isSelected = selectedLabels.includes(label); return ( ); };