UNPKG

@gravity-ui/uikit

Version:

Gravity UI base styling and components

11 lines (10 loc) 347 B
import * as React from 'react'; import { ThemeContext } from "./ThemeContext.js"; export function useThemeContext() { const state = React.useContext(ThemeContext); if (state === undefined) { throw new Error('useTheme* hooks must be used within ThemeProvider'); } return state; } //# sourceMappingURL=useThemeContext.js.map