"use client" import { Check, Copy, TriangleAlert } from "lucide-react" import { useState } from "react" import { trackOnboardingEvent } from "@/lib/onboarding-events" import { projectIntakePreviewPrompt, safeFirstPrompt } from "@/lib/product" type CopyState = "idle" | "copied" | "unavailable" type PromptCardProps = { description: string label: string prompt: string promptKind: "safe_check" | "intake_preview" title: string } function PromptCard({ description, label, prompt, promptKind, title }: PromptCardProps) { const [copyState, setCopyState] = useState("idle") async function copyPrompt() { try { if (!navigator.clipboard?.writeText) throw new Error("Clipboard API is unavailable") await navigator.clipboard.writeText(prompt) setCopyState("copied") trackOnboardingEvent("onboarding_project_intake_prompt_copied", { prompt_kind: promptKind }) window.setTimeout(() => setCopyState("idle"), 2200) } catch { setCopyState("unavailable") } } return (

{label}

{title}

{description}

{prompt}
{copyState === "unavailable" ? (

) : null}
) } export function ProjectIntakePrompts() { return (
) }