"use client" import { useState } from "react" import { Copy, Check } from "lucide-react" import { Button } from "@/components/ui/button" export function InstallCommand({ command }: { command: string }) { const [copied, setCopied] = useState(false) const copyCommand = async () => { try { await navigator.clipboard.writeText(command) setCopied(true) window.setTimeout(() => setCopied(false), 2000) } catch (err) { console.warn("Failed to copy install command", err) } } return (
$ {command}
) }