"use client"; import { ClipboardDocumentIcon } from "@heroicons/react/24/outline"; import { useState } from "react"; export function CopyCommand({ command }: { command: string }) { const [copied, setCopied] = useState(false); async function copy() { await navigator.clipboard.writeText(command); setCopied(true); window.setTimeout(() => setCopied(false), 1600); } return ( ); }