mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 22:35:51 +00:00
refactor: 大规模迁移原有组件到 ink 包内
This commit is contained in:
@@ -1,12 +1,2 @@
|
||||
import { useContext } from 'react'
|
||||
import { type TerminalSize, TerminalSizeContext } from '@anthropic/ink'
|
||||
|
||||
export function useTerminalSize(): TerminalSize {
|
||||
const size = useContext(TerminalSizeContext)
|
||||
|
||||
if (!size) {
|
||||
throw new Error('useTerminalSize must be used within an Ink App component')
|
||||
}
|
||||
|
||||
return size
|
||||
}
|
||||
// Re-export from @anthropic/ink hooks module
|
||||
export { useTerminalSize } from '@anthropic/ink'
|
||||
|
||||
Reference in New Issue
Block a user