"use client" import { Copy } from "lucide-react" import { toast } from "sonner" import { Label } from "@/components/ui/label" import { Textarea } from "@/components/ui/textarea" export function PromptEditor({ label = "自定义提示词 (customPrompt)", value, onChange, placeholder, rows = 6, }: { label?: string value: string onChange: (v: string) => void placeholder?: string rows?: number }) { function copy() { navigator.clipboard.writeText(value) toast.success("已复制 Prompt") } return (