"use client"; import { useState } from "react"; /** * Raw key display with a copy button. The key is stored and retrievable on the * dashboard, so this renders both at creation and on return visits. * * @param {{ rawKey: string, model: string }} props */ export function KeyDisplay({ rawKey, model }) { const [copied, setCopied] = useState(false); async function copy() { try { await navigator.clipboard.writeText(rawKey); setCopied(true); } catch { setCopied(false); } } return (

⚠ Keep this key secret — treat it like a password. You can always copy it again here on your dashboard.

{rawKey}

Use it as a Bearer token against https://openrouter.ai/api/v1{" "} with model {model}. See the docs.

); }