"use client" import { Switch } from "@/components/ui/switch" import { Label } from "@/components/ui/label" import { Textarea } from "@/components/ui/textarea" import { Button } from "@/components/ui/button" import { Plus, X } from "lucide-react" interface FollowUpSettingsProps { settings: { autoWelcome: boolean welcomeMessage: string autoTag: boolean tags: string[] } onChange: (settings: any) => void } export function FollowUpSettings({ settings, onChange }: FollowUpSettingsProps) { const handleToggle = (key: string, value: boolean) => { onChange({ ...settings, [key]: value, }) } const handleMessageChange = (value: string) => { onChange({ ...settings, welcomeMessage: value, }) } const addTag = () => { const tag = prompt("请输入标签名称") if (tag && !settings.tags.includes(tag)) { onChange({ ...settings, tags: [...settings.tags, tag], }) } } const removeTag = (tag: string) => { onChange({ ...settings, tags: settings.tags.filter((t) => t !== tag), }) } return (
加好友成功后自动发送
为新好友自动添加标签