"use client"; import {Input} from "@/components/ui/input"; import {Button} from "@/components/ui/button"; import {Copy, Check, Eye, EyeOff, Terminal, Key, Info} from "lucide-react"; import {useState} from "react"; import {copyToClipboardWithMeta} from "@/components/wrappers/common/button/copy-button"; import {Card, CardContent, CardDescription, CardHeader, CardTitle} from "@/components/ui/card"; export type AgentCardKeyProps = { edgeKey: string; agentName: string; }; export const AgentCardKey = ({edgeKey, agentName}: AgentCardKeyProps) => { const [isCopiedKey, setIsCopiedKey] = useState(false); const [isCopiedCommand, setIsCopiedCommand] = useState(false); const [isVisible, setIsVisible] = useState(false); const command = `portabase agent "${agentName}" --key ${edgeKey}`; const maskedKey = "••••••••••••••••••••••••••••••••"; const handleCopy = async (text: string, setter: (v: boolean) => void) => { await copyToClipboardWithMeta(text); setter(true); }; return (