////////// PROJECT FILE SEPARATION LINE ////////// CODE AFTER THIS LINE ARE FROM: /Data/WebUI/src/Dialogs.jsx import { Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, Button, Menu, MenuItem, TextField } from "@mui/material"; export function CloseAllDialog({ open, onClose, onConfirm }) { return ( Close All Flow Tabs? This will remove all existing flow tabs and create a fresh tab named Flow 1. ); } export function CreditsDialog({ open, onClose }) { return ( Borealis Logo Borealis Workflow Automation Tool Designed by Nicole Rappe @{" "} Bunny Lab ); } export function RenameTabDialog({ open, value, onChange, onCancel, onSave }) { return ( Rename Tab onChange(e.target.value)} sx={{ "& .MuiOutlinedInput-root": { backgroundColor: "#2a2a2a", color: "#ccc", "& fieldset": { borderColor: "#444" }, "&:hover fieldset": { borderColor: "#666" } }, label: { color: "#aaa" }, mt: 1 }} /> ); } export function RenameWorkflowDialog({ open, value, onChange, onCancel, onSave }) { return ( Rename Workflow onChange(e.target.value)} sx={{ "& .MuiOutlinedInput-root": { backgroundColor: "#2a2a2a", color: "#ccc", "& fieldset": { borderColor: "#444" }, "&:hover fieldset": { borderColor: "#666" } }, label: { color: "#aaa" }, mt: 1 }} /> ); } export function RenameFolderDialog({ open, value, onChange, onCancel, onSave, title = "Folder Name", confirmText = "Save" }) { return ( {title} onChange(e.target.value)} sx={{ "& .MuiOutlinedInput-root": { backgroundColor: "#2a2a2a", color: "#ccc", "& fieldset": { borderColor: "#444" }, "&:hover fieldset": { borderColor: "#666" } }, label: { color: "#aaa" }, mt: 1 }} /> ); } export function NewWorkflowDialog({ open, value, onChange, onCancel, onCreate }) { return ( New Workflow onChange(e.target.value)} sx={{ "& .MuiOutlinedInput-root": { backgroundColor: "#2a2a2a", color: "#ccc", "& fieldset": { borderColor: "#444" }, "&:hover fieldset": { borderColor: "#666" } }, label: { color: "#aaa" }, mt: 1 }} /> ); } export function SaveWorkflowDialog({ open, value, onChange, onCancel, onSave }) { return ( Save Workflow onChange(e.target.value)} sx={{ "& .MuiOutlinedInput-root": { backgroundColor: "#2a2a2a", color: "#ccc", "& fieldset": { borderColor: "#444" }, "&:hover fieldset": { borderColor: "#666" } }, label: { color: "#aaa" }, mt: 1 }} /> ); } export function ConfirmDeleteDialog({ open, message, onCancel, onConfirm }) { return ( Confirm Delete {message} ); } export function DeleteDeviceDialog({ open, onCancel, onConfirm }) { return ( Remove Device Are you sure you want to remove this device? If the agent is still running, it will automatically re-enroll the device. ); } export function TabContextMenu({ anchor, onClose, onRename, onCloseTab }) { return ( Rename Close Workflow ); }