"use client"; import { useState } from "react"; import { Check, Copy } from "lucide-react"; /** PEP-190: a long text for an AI's instructions, in full, with a copy button. */ export function GuideCopy({ value, label, done }: { value: string; label: string; done: string }) { const [copied, setCopied] = useState(false); async function copy() { try { await navigator.clipboard.writeText(value); setCopied(true); setTimeout(() => setCopied(false), 2500); } catch { /* no clipboard access: the text is selectable, the person copies it by hand */ } } return (
{value}
); }