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