// @flow import * as React from 'react'; import getProp from 'lodash/get'; import AutoSizer from 'react-virtualized/dist/es/AutoSizer'; import GridView from '../../components/grid-view/GridView'; import ItemGridCell from './ItemGridCell'; import type { ItemGridProps } from './flowTypes'; type Props = { currentCollection: Collection, gridColumnCount: number, ...$Exact, }; const ItemGrid = ({ currentCollection, gridColumnCount, rootId, ...rest }: Props) => { /** * Renderer used for cards in grid view * * @param {number} slotIndex - index of item in currentCollection.items * @return {React.Element} - Element to display in card */ const slotRenderer = (slotIndex: number): ?React.Element => { const item: ?BoxItem = getProp(currentCollection, `items[${slotIndex}]`); return item ? : null; }; return ( {({ height, width }) => ( )} ); }; export default ItemGrid;