// ThemeContext.tsx import React, { createContext, useContext } from "react"; import { UserFriendlyTheme } from "../util/types"; interface ThemeContextType { theme?: Partial; } interface ThemeContextProps { children: React.ReactNode; theme?: Partial; } const ThemeContext = createContext(undefined); export const ThemeProvider: React.FC = ({ children, theme }) => { return ( {children} ); }; export const useTheme = (): ThemeContextType => { const context = useContext(ThemeContext); if (context === undefined) { throw new Error("useTheme must be used within a ThemeProvider"); } return context; };