import { createContext, useContext } from 'react' import type { ThemeConfig, ThemeContextValue } from '.' import type { ThemeProps } from 'vite-plugin-react-pages/clientTypes' export const themeConfigCtx = createContext({}) export const themePropsCtx = createContext({ loadState: { type: 'loading', routePath: '/' }, loadedData: {}, }) export const themeCtx = createContext({} as any) export function useThemeCtx() { return useContext(themeCtx) }