"use client"; import { useState } from "react"; import { Check, Copy, Terminal } from "lucide-react"; import { copyText } from "@multica/ui/lib/clipboard"; import { useLocale } from "../../i18n"; const INSTALL_CMD = "curl -fsSL https://raw.githubusercontent.com/multica-ai/multica/main/scripts/install.sh | bash"; const SETUP_CMD = "multica setup"; /** * Scenario-first CLI section. Copy leans into servers / remote dev * boxes / headless setups rather than positioning CLI as a * lightweight Desktop. Two copy-and-paste command blocks. */ export function CliSection() { const { t } = useLocale(); const d = t.download.cli; return (

{d.title}

{d.sub}

{d.sshNote}

); } function CommandBlock({ label, cmd, copyLabel, copiedLabel, }: { label: string; cmd: string; copyLabel: string; copiedLabel: string; }) { const [copied, setCopied] = useState(false); const onCopy = async () => { if (await copyText(cmd)) { setCopied(true); setTimeout(() => setCopied(false), 1800); } }; return (

{label}

{cmd}
); }