feat(waybar): implement all dummy widgets

This commit is contained in:
Pihkaal
2024-07-31 15:13:53 +02:00
parent 1dcae0c20a
commit 0046e5dd82
28 changed files with 396 additions and 84 deletions

View File

@@ -3,8 +3,20 @@ import { AppContext } from "~/context/AppContext";
export const AppProvider = (props: { children?: ReactNode }) => {
const [activeKitty, setActiveKitty] = useState(":r0:");
const [brightness, setBrightness] = useState(100);
const [volume, setVolume] = useState(100);
return (
<AppContext.Provider value={{ activeKitty, setActiveKitty }}>
<AppContext.Provider
value={{
activeKitty,
setActiveKitty,
brightness,
setBrightness,
volume,
setVolume,
}}
>
{props.children}
</AppContext.Provider>
);