(terminalWidth: number)
| 119 | * Determine the width layout size from terminal width. |
| 120 | */ |
| 121 | const getWidthSize = (terminalWidth: number): TerminalWidthSize => { |
| 122 | if (terminalWidth < WIDTH_XS_BREAKPOINT) { |
| 123 | return 'xs' |
| 124 | } else if (terminalWidth > WIDTH_LG_BREAKPOINT) { |
| 125 | return 'lg' |
| 126 | } else if (terminalWidth > WIDTH_MD_BREAKPOINT) { |
| 127 | return 'md' |
| 128 | } else { |
| 129 | return 'sm' |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * Determine the height layout size from terminal height. |
no outgoing calls
no test coverage detected