MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / useGridLayout

Function useGridLayout

cli/src/hooks/use-grid-layout.ts:65–73  ·  view source on GitHub ↗
(
  items: T[],
  availableWidth: number,
)

Source from the content-addressed store, hash-verified

63}
64
65export function useGridLayout<T>(
66 items: T[],
67 availableWidth: number,
68): GridLayoutResult<T> {
69 return useMemo(
70 () => computeGridLayout(items, availableWidth),
71 [items, availableWidth],
72 )
73}

Callers 2

GridLayoutInnerFunction · 0.90

Calls 1

computeGridLayoutFunction · 0.85

Tested by

no test coverage detected