Files
react/components/use-theme/use-theme.ts
witt 2d8abce0ce refactor(use-theme): move use-theme to the top directory (#397)
* refactor(use-theme): move use-theme to the top directory

* chore(jest): ignore use-theme of forwarding
2021-01-31 17:49:30 +08:00

8 lines
234 B
TypeScript

import React from 'react'
import ThemeContext from './theme-context'
import { GeistUIThemes } from '../styles/themes/index'
const useTheme = (): GeistUIThemes => React.useContext<GeistUIThemes>(ThemeContext)
export default useTheme