Consolidate ThemeProvider and AppProvider

This commit is contained in:
Alex Gleason committed 2025-06-04 09:42:53 -05:00
1 parent bce7af2e76
commit c3310ab485
7 files changed
+199 -145

No files matched your search

-15
View File
@@ -1,15 +0,0 @@
import { createContext } from "react";
export type Theme = "dark" | "light" | "system";
export type ThemeContextType = {
theme: Theme;
setTheme: (theme: Theme) => void;
};
const initialState: ThemeContextType = {
theme: "system",
setTheme: () => undefined,
};
export const ThemeContext = createContext<ThemeContextType>(initialState);