]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/episodes/Channels.js
draggable tracker icons
[alttp.git] / resources / js / components / episodes / Channels.js
1 import PropTypes from 'prop-types';
2 import React from 'react';
3
4 import Channel from './Channel';
5
6 const Channels = ({ channels, episode, onEditRestream }) =>
7         channels.map(channel =>
8                 <Channel
9                         channel={channel}
10                         episode={episode}
11                         key={channel.id}
12                         onEditRestream={onEditRestream}
13                 />
14         );
15
16 Channels.propTypes = {
17         channels: PropTypes.arrayOf(PropTypes.shape({
18         })),
19         episode: PropTypes.shape({
20         }),
21         onEditRestream: PropTypes.func,
22 };
23
24 export default Channels;