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