feat: add off, booting and sddm view
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { createContext } from "react";
|
||||
import { type Prettify, type State } from "~/utils/types";
|
||||
|
||||
export const AppContext = createContext<
|
||||
| Prettify<
|
||||
State<"activeKitty", string> &
|
||||
State<"brightness", number> &
|
||||
State<"volume", number> & { screenWidth: number }
|
||||
>
|
||||
| undefined
|
||||
>(undefined);
|
||||
export const AppContext = createContext<AppContextProps | undefined>(undefined);
|
||||
|
||||
export type AppContextProps = Prettify<
|
||||
State<"state", "off" | "boot" | "login" | "desktop"> &
|
||||
State<"activeKitty", string> &
|
||||
State<"brightness", number> &
|
||||
State<"volume", number> & { screenWidth: number }
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user