import * as React from 'react'; import { useContext } from 'react'; import { TreatProvider } from 'react-treat'; import { RuntimeTheme } from './theme'; const ThemeContext = React.createContext(undefined as never); export interface ThemeProviderProps { theme: RuntimeTheme; children: React.ReactNode; } export function ThemeProvider({ theme, children, }: ThemeProviderProps): JSX.Element { return ( {children} ); } export function useTheme(): RuntimeTheme { return useContext(ThemeContext); }