feat: add suspend state and make all buttons related to state working

This commit is contained in:
2024-09-11 17:32:57 +02:00
parent 4f8e6aa928
commit f718d0b18d
7 changed files with 36 additions and 17 deletions

View File

@@ -4,7 +4,7 @@ import { type Prettify, type State } from "~/utils/types";
export const AppContext = createContext<AppContextProps | undefined>(undefined);
export type AppContextProps = Prettify<
State<"state", "off" | "boot" | "login" | "desktop"> &
State<"state", "off" | "suspend" | "reboot" | "boot" | "login" | "desktop"> &
State<"activeKitty", string> &
State<"brightness", number> &
State<"volume", number> & { screenWidth: number }