mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-23 08:45:50 +00:00
This reverts commit 88d4c3ba24.
This commit is contained in:
8
packages/@ant/ink/src/hooks/use-stdin.ts
Normal file
8
packages/@ant/ink/src/hooks/use-stdin.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
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
|
||||
Reference in New Issue
Block a user