π File detail
ink/hooks/use-app.ts
π§© .tsπ 9 linesπΎ 251 bytesπ text
β Back to All Filesπ― Use case
This file lives under βink/β, which covers Ink terminal UI (layouts, TTY IO, keyboard, renderer components). It primarily provides a default export (component, class, or entry function). Dependencies touch React UI. It composes internal code from components (relative imports).
Generated from folder role, exports, dependency roots, and inline comments β not hand-reviewed for every path.
π§ Inline summary
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).
π€ Exports (heuristic)
default
π External import roots
Package roots from from "β¦" (relative paths omitted).
react
π₯οΈ Source preview
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