MCPcopy
hub / github.com/CodebuffAI/codebuff / useTerminalLayout

Function useTerminalLayout

cli/src/hooks/use-terminal-layout.ts:180–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178 * if (height.atMost('sm')) { ... } // xs or sm
179 */
180export 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}

Callers 8

BuildModeButtonsFunction · 0.90
PublishContainerFunction · 0.90
ProjectPickerScreenFunction · 0.90
ChatHistoryScreenFunction · 0.90
BottomBannerFunction · 0.90
useGravityAdFunction · 0.90
useChatUIFunction · 0.90

Calls 2

useTerminalDimensionsFunction · 0.90
computeTerminalLayoutFunction · 0.85

Tested by

no test coverage detected