]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/protocol/List.js
protocol frontend
[alttp.git] / resources / js / components / protocol / List.js
1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { ListGroup } from 'react-bootstrap';
4
5 import Item from './Item';
6
7 const List = ({ protocol }) =>
8         <ListGroup variant="flush">
9                 {protocol ? protocol.map(entry =>
10                         <Item key={entry.id} entry={entry} />
11                 ) : null}
12         </ListGroup>;
13
14 List.propTypes = {
15         protocol: PropTypes.arrayOf(PropTypes.shape({
16         })),
17 };
18
19 List.defaultProps = {
20         protocol: [],
21 };
22
23 export default List;