"use client"; import { useState } from "react"; type ApiKeyCardProps = { apiKey: string; }; export default function ApiKeyCard({ apiKey }: ApiKeyCardProps) { const [copied, setCopied] = useState(false); const handleCopy = async () => { try { await navigator.clipboard.writeText(apiKey); setCopied(true); window.setTimeout(() => setCopied(false), 2000); } catch { setCopied(false); } }; return (

Your API key

{apiKey}
); }