import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'stremio-icons/dom';
import Stream from './Stream';
import styles from './styles';
const renderStreamPlaceholders = () => {
const streamPlaceholders = [];
for (let placeholderNumber = 0; placeholderNumber < 20; placeholderNumber++) {
streamPlaceholders.push(
)
}
return streamPlaceholders;
}
const StreamsList = (props) => {
return (
{props.streams.length === 0 ?
renderStreamPlaceholders()
:
props.streams.map((stream) =>
)}
);
}
StreamsList.propTypes = {
streams: PropTypes.arrayOf(PropTypes.object).isRequired,
onMoreAddonsClicked: PropTypes.func
};
StreamsList.defaultProps = {
streams: []
};
export default StreamsList;