mirror of
http://10.0.2.1:3031/sauer/claude-code.git
synced 2026-06-30 20:46:58 +10: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
|