mirror of
http://10.0.2.1:3031/sauer/claude-code.git
synced 2026-06-30 19:46:58 +10:00
9 lines
251 B
TypeScript
9 lines
251 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
|