"use client"; import { Modal } from "../ui/Modal"; import { Button } from "../ui/Button"; import { Calendar, Terminal, MessageSquare, AlertCircle, Trash2, } from "lucide-react"; import { CronJob } from "@/app/_utils/system"; interface DeleteTaskModalProps { isOpen: boolean; onClose: () => void; onConfirm: () => void; job: CronJob | null; } export function DeleteTaskModal({ isOpen, onClose, onConfirm, job, }: DeleteTaskModalProps) { if (!job) return null; return (
{/* Task Preview */}
{/* Schedule */}
{job.schedule}
{/* Command */}
                {job.command}
              
{/* Comment */} {job.comment && (

{job.comment}

)}
{/* Warning */}

This action cannot be undone

The task will be permanently removed.

{/* Actions */}
); }