import { createContext } from 'react'; import type { ThemeRuntime } from '../../../../types/theme'; import { createTheme } from '../../application/use-cases/createTheme'; const defaultTheme = createTheme(); /*** Holds the active Surface theme runtime for component consumption. */ export const ThemeRuntimeContext = createContext({ theme: defaultTheme, mode: 'light', inverted: false, setThemeConfig: () => undefined, setMode: () => undefined, });