"use client" import { Input } from "@/components/ui/input" import { Button } from "@/components/ui/button" import { Switch } from "@/components/ui/switch" import { Plus, Minus, Clock, HelpCircle } from "lucide-react" import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip" interface BasicSettingsProps { formData: { taskName: string startTime: string endTime: string syncCount: number accountType: "business" | "personal" enabled: boolean } onChange: (data: Partial) => void onNext: () => void } export function BasicSettings({ formData, onChange, onNext }: BasicSettingsProps) { return (
任务名称
onChange({ taskName: e.target.value })} placeholder="请输入任务名称" className="h-12 border-0 border-b border-gray-200 rounded-none focus-visible:ring-0 focus-visible:border-blue-600 px-0 text-base" />
允许发布时间段
onChange({ startTime: e.target.value })} className="h-12 pl-10 rounded-xl border-gray-200 text-base" />
onChange({ endTime: e.target.value })} className="h-12 pl-10 rounded-xl border-gray-200 text-base" />
每日同步数量
{formData.syncCount} 条朋友圈
账号类型

业务号能够循环推送内容库中的内容。当内容库所有内容循环推送完毕后,若有新内容则优先推送新内容,若无新内容则继续循环推送。

用于实时更新同步,有新动态时进行同步,无动态则不同步。

是否启用 onChange({ enabled: checked })} className="data-[state=checked]:bg-blue-600 h-7 w-12" />
) }