import { createContext, useContext } from "react"; import { ThemeContextType, themes } from "./types"; export const ThemeContext = createContext({ theme: themes.dark, changeTheme: () => { }, defaultTheme: themes.dark, isDark: () => false, }); export function useThemeContext(): ThemeContextType { return useContext(ThemeContext); }