mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 13:55:50 +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
|