"use client" import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog" import { Button } from "@/components/ui/button" import { Check } from "lucide-react" interface PosterTemplate { id: string title: string type: "领取" | "了解" imageUrl: string } interface PosterSelectorProps { open: boolean onOpenChange: (open: boolean) => void onSelect: (template: PosterTemplate) => void } const templates: PosterTemplate[] = [ { id: "1", title: "点击领取", type: "领取", imageUrl: "/placeholder.svg?height=400&width=300", }, { id: "2", title: "点击了解", type: "了解", imageUrl: "/placeholder.svg?height=400&width=300", }, // ... 其他模板 ] export function PosterSelector({ open, onOpenChange, onSelect }: PosterSelectorProps) { return ( 选择海报

点击下方海报使用该模板

{templates.map((template) => (
{ onSelect(template) onOpenChange(false) }} >
{template.title}
{template.title}
{template.type}类型
))}
) }