import { Button } from "@components/UI/Button.tsx"; import { Dialog, DialogClose, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "@components/UI/Dialog.tsx"; import { Input } from "@components/UI/Input.tsx"; import { useDevice } from "@core/stores/deviceStore.ts"; import { ClockIcon, PowerIcon } from "lucide-react"; import { useState } from "react"; export interface ShutdownDialogProps { open: boolean; onOpenChange: (open: boolean) => void; } export const ShutdownDialog = ({ open, onOpenChange, }: ShutdownDialogProps) => { const { connection } = useDevice(); const [time, setTime] = useState(5); return ( Schedule Shutdown Turn off the connected node after x minutes.
setTime(Number.parseInt(e.target.value))} className="dark:text-slate-900" suffix="Minutes" />
); };