mirror of
https://github.com/zhigang1992/react.git
synced 2026-02-12 09:11:22 +08:00
* refactor(use-theme): move use-theme to the top directory * chore(jest): ignore use-theme of forwarding
8 lines
234 B
TypeScript
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
|