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 { useTranslation } from "react-i18next"; import { useState } from "react"; export interface ShutdownDialogProps { open: boolean; onOpenChange: (open: boolean) => void; } export const ShutdownDialog = ({ open, onOpenChange, }: ShutdownDialogProps) => { const { t } = useTranslation("dialog"); const { connection } = useDevice(); const [time, setTime] = useState(5); return ( {t("shutdown.title")} {t("shutdown.description")}
setTime(Number.parseInt(e.target.value))} suffix={t("unit.minute.plural")} />
); };