mirror of
https://github.com/zhigang1992/react.git
synced 2026-02-09 22:50:06 +08:00
8 lines
224 B
TypeScript
8 lines
224 B
TypeScript
import React from 'react'
|
|
import ThemeContext from './theme-context'
|
|
import { ZeitUIThemes } from '../themes/index'
|
|
|
|
const useTheme = (): ZeitUIThemes => React.useContext<ZeitUIThemes>(ThemeContext)
|
|
|
|
export default useTheme
|