mirror of
https://gitverse.ru/anarchic/claude-code
synced 2026-07-28 17:42:46 +00:00
9 lines
232 B
TypeScript
9 lines
232 B
TypeScript
import { useContext } from 'react'
|
|
import StdinContext from '../components/StdinContext.js'
|
|
|
|
/**
|
|
* `useStdin` is a React hook, which exposes stdin stream.
|
|
*/
|
|
const useStdin = () => useContext(StdinContext)
|
|
export default useStdin
|