"use client"; import { Modal } from "@/app/_components/GlobalComponents/UIElements/Modal"; import { Button } from "@/app/_components/GlobalComponents/UIElements/Button"; import { FileText, AlertCircle, Trash2 } from "lucide-react"; import { Script } from "@/app/_utils/scripts-utils"; interface DeleteScriptModalProps { script: Script | null; isOpen: boolean; onClose: () => void; onConfirm: () => void; isDeleting: boolean; } export const DeleteScriptModal = ({ script, isOpen, onClose, onConfirm, isDeleting, }: DeleteScriptModalProps) => { if (!isOpen || !script) return null; return (
{script.name}
{script.description && (

{script.description}

)}
{script.filename}

This action cannot be undone

The script will be permanently removed.

); }