feat: 增加 ThemeContext
parent
c352581f98
commit
74a68d705c
@ -0,0 +1,7 @@
|
|||||||
|
import { createContext, useContext } from 'react'
|
||||||
|
|
||||||
|
export const ThemeContext = createContext({})
|
||||||
|
|
||||||
|
export function useThemeContext() {
|
||||||
|
return useContext(ThemeContext)
|
||||||
|
}
|
Loading…
Reference in New Issue