import {Context, createContext} from "react"; export type SupportedTheme = 'dark' | 'light'; export interface ThemeContextProps { theme: SupportedTheme; setTheme: (theme: SupportedTheme) => void; } export const ThemeContext: Context = createContext({ theme: 'dark', setTheme: (): void => { } });