import { useState } from "react"; import { CheckIcon, CopyIcon } from "@phosphor-icons/react"; const ShellCommand = ({ command, description }: { command: string; description?: string; }) => { const [copied, setCopied] = useState(false); const [isHovered, setIsHovered] = useState(false); const handleCopy = async () => { await navigator.clipboard.writeText(command); setCopied(true); setTimeout(() => setCopied(false), 2000); }; return (
{command}