(terminalHeight: number)
| 134 | * Determine the height layout size from terminal height. |
| 135 | */ |
| 136 | const getHeightSize = (terminalHeight: number): TerminalHeightSize => { |
| 137 | if (terminalHeight < HEIGHT_XS_BREAKPOINT) { |
| 138 | return 'xs' |
| 139 | } else if (terminalHeight > HEIGHT_MD_BREAKPOINT) { |
| 140 | return 'md' |
| 141 | } else { |
| 142 | return 'sm' |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | /** |
| 147 | * Pure function to compute terminal layout from dimensions. |
no outgoing calls
no test coverage detected