feat: add off, booting and sddm view

This commit is contained in:
Pihkaal
2024-09-11 17:16:52 +02:00
parent e332f87384
commit 14ef2317fa
8 changed files with 313 additions and 23 deletions

View File

@@ -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 }
>;