"use client"; import { X, Copy, Check } from "lucide-react"; import { useState } from "react"; import { Button } from "./Button"; interface RestartModalProps { isOpen: boolean; onClose: () => void; changedServices: string[]; } export function RestartModal({ isOpen, onClose, changedServices, }: RestartModalProps) { const [copied, setCopied] = useState(false); const command = "docker-compose restart"; const handleCopy = async () => { await navigator.clipboard.writeText(command); setCopied(true); setTimeout(() => setCopied(false), 2000); }; if (!isOpen) return null; return ( <> {/* Backdrop */}
{/* Modal */}
Your settings have been saved successfully and the
.env
file has been updated.
Restart Required
The following services need a restart to apply changes:
Run this command in your terminal:
No restart needed! Changes are applied immediately.