()
| 5 | } from 'src/ink/components/TerminalSizeContext.js' |
| 6 | |
| 7 | export function useTerminalSize(): TerminalSize { |
| 8 | const size = useContext(TerminalSizeContext) |
| 9 | |
| 10 | if (!size) { |
| 11 | throw new Error('useTerminalSize must be used within an Ink App component') |
| 12 | } |
| 13 | |
| 14 | return size |
| 15 | } |
| 16 |
no outgoing calls
no test coverage detected