import React from 'react'; import { CalendarClock, Loader2, MessageSquareQuote, Play, Save, Sparkles, X } from 'lucide-react'; import { AccountDetail, AccountTaskSettings } from '../types'; import { useAccountAutomation } from '../app/features/accountAutomation/hooks'; interface Props { account: AccountDetail; onClose: () => void; onSaved: (settings: AccountTaskSettings) => void; } const Toggle: React.FC<{checked: boolean; onChange: () => void; label: string}> = ({ checked, onChange, label }) => ( ); const AccountAutomationModal: React.FC = ({ account, onClose, onSaved }) => { // automationState 是账号任务 feature Hook 提供的表单和动作状态。 const { form, loading, saving, running, error, summary, retryAvailable, setForm, save, run, retry } = useAccountAutomation({ account, onSaved }); return (

账号自动任务

{account.nickname || account.remark || account.id}

{loading &&
正在读取任务设置...
}

自动评价

持续扫描待评价订单,按订单执行;不是每日任务。

setForm(current => ({ ...current, auto_rate_enabled: !current.auto_rate_enabled }))} label="自动评价" />