()
| 178 | * if (height.atMost('sm')) { ... } // xs or sm |
| 179 | */ |
| 180 | export const useTerminalLayout = (): TerminalLayout => { |
| 181 | const { terminalWidth, terminalHeight } = useTerminalDimensions() |
| 182 | |
| 183 | const layout = useMemo( |
| 184 | () => computeTerminalLayout(terminalWidth, terminalHeight), |
| 185 | [terminalWidth, terminalHeight], |
| 186 | ) |
| 187 | |
| 188 | return layout |
| 189 | } |
no test coverage detected