import React from 'react'; import { Terminal, Copy, Check } from 'lucide-react'; interface InstallGuideProps { packageName: string; } export function InstallGuide({ packageName }: InstallGuideProps) { const [copied, setCopied] = React.useState(false); const command = `sudo pacman -S ${packageName}`; const copyCommand = () => { navigator.clipboard.writeText(command); setCopied(true); setTimeout(() => setCopied(false), 2000); }; return (
{command}