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,10 +1,11 @@
import { type ReactNode, useState, useEffect } from "react";
import { AppContext } from "~/context/AppContext";
import { AppContext, type AppContextProps } from "~/context/AppContext";
export const AppProvider = (props: { children?: ReactNode }) => {
const [activeKitty, setActiveKitty] = useState(":r0:");
const [brightness, setBrightness] = useState(100);
const [volume, setVolume] = useState(100);
const [state, setState] = useState<AppContextProps["state"]>("off");
const [screenWidth, setScreenWidth] = useState(window.innerWidth);
@@ -28,6 +29,8 @@ export const AppProvider = (props: { children?: ReactNode }) => {
volume,
setVolume,
screenWidth,
state,
setState,
}}
>
{props.children}