'use client'; import { useState } from 'react'; import { Link, Check } from 'lucide-react'; interface CopyLinkProps { href: string; children: React.ReactNode; className?: string; } export function CopyLink({ href, children, className }: CopyLinkProps) { const [copied, setCopied] = useState(false); const handleCopy = async () => { const fullUrl = `${window.location.origin}${href}`; await navigator.clipboard.writeText(fullUrl); setCopied(true); setTimeout(() => setCopied(false), 2000); }; return ( ); }