* Refactor to just CommandBar and GlobalState * @Irev-Dev review: consolidate uses of useContext
7 lines
191 B
TypeScript
7 lines
191 B
TypeScript
import { GlobalStateContext } from 'components/GlobalStateProvider'
|
|
import { useContext } from 'react'
|
|
|
|
export const useGlobalStateContext = () => {
|
|
return useContext(GlobalStateContext)
|
|
}
|