Files
Iris/src/js/components/List.js
James Barnsley 1ce85499f9 Eslint autofix
2021-03-23 21:21:00 +13:00

30 lines
467 B
JavaScript
Executable File

import React from 'react';
import { SmartList } from './SmartList';
import { ListItem } from './ListItem';
const List = ({
items,
className = '',
...rest
}) => {
if (!items || !items.length) return null;
return (
<SmartList
className={`list ${className}`}
items={items}
itemComponent={ListItem}
itemProps={rest}
chunkSize={10}
/>
);
};
export default {
List,
};
export {
List,
};