import React, { useState } from 'react'; import { Clipboard, Check } from 'lucide-react'; const InstallLine: React.FC<{ packageName: string }> = ({ packageName }) => { const [hasCopied, setHasCopied] = useState(false); const command = `npm i ${packageName}`; const copyToClipboard = () => { navigator.clipboard.writeText(command); setHasCopied(true); setTimeout(() => setHasCopied(false), 2000); }; return (