import { CheckIcon, CopyIcon } from 'lucide-react' import { useState } from 'react' import { copyToClipboard, Tooltip, TooltipContent, TooltipTrigger } from 'ui' export const IdCopyChip = ({ id, label }: { id: string; label: string }) => { const [isCopied, setIsCopied] = useState(false) const handleCopy = (e: React.SyntheticEvent) => { e.stopPropagation() copyToClipboard(id) setIsCopied(true) setTimeout(() => setIsCopied(false), 2000) } return ( {label} ) }