import React from "react"; import Modal from "components/Modal"; import Button from "components/buttons/Button"; const baseClass = "cancel-script-batch-modal"; interface ICancelScriptBatchModal { onExit: () => void; onSubmit: () => void; scriptName?: string; isCanceling: boolean; } const CancelScriptBatchModal = ({ onSubmit, onExit, scriptName, isCanceling, }: ICancelScriptBatchModal) => { return ( <>

This will cancel any pending script runs for{" "} {scriptName ? {scriptName} : "this batch"}.

If this script is currently running on a host, it will complete, but results won’t appear in Fleet.

You cannot undo this action.

); }; export default CancelScriptBatchModal;