import type { CronTask } from '../../types/task' import { useTaskStore } from '../../stores/taskStore' import { useTranslation } from '../../i18n' type Props = { task: CronTask } export function TaskRow({ task }: Props) { const { deleteTask, updateTask } = useTaskStore() const t = useTranslation() const toggleEnabled = () => { updateTask(task.id, { enabled: !task.enabled }) } return (