mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
9 lines
252 B
TypeScript
9 lines
252 B
TypeScript
import { useContext } from 'react'
|
|
|
|
import AppContext from '../components/AppContext.js'
|
|
|
|
/**
|
|
* `useApp` is a React hook, which exposes a method to manually exit the app (unmount).
|
|
*/
|
|
const useApp = () => useContext(AppContext)
|
|
export default useApp
|