'use client' import * as React from 'react' import { Check } from 'lucide-react' import { cn } from '@/lib/utils' import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger, } from "@/components/ui/dialog" import { templates } from '@/config/wechat-templates' import { Button } from "@/components/ui/button" interface WechatStylePickerProps { value?: string onSelect: (value: string) => void } export function WechatStylePicker({ value, onSelect }: WechatStylePickerProps) { const [open, setOpen] = React.useState(false) return ( 选择样式模板
{templates.map((template) => (
{ onSelect(template.id) setOpen(false) }} >

标题示例

这是一段示例文本,展示不同样式模板的效果。

引用文本示例

{template.name}

{template.description}

{value === template.id && (
)}
))}
) }