1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Button } from 'react-bootstrap';
5 import Icon from '../common/Icon';
6 import { getStreamLink } from '../../helpers/Crew';
8 const MultiLink = ({ players }) => {
9 const streams = players.map(getStreamLink);
10 const names = streams.map(s => s.split('/').pop());
11 const url = `https://multistre.am/${names.join('/')}`;
13 return <div className="episode-channel">
19 variant="outline-twitch"
27 MultiLink.propTypes = {
28 players: PropTypes.arrayOf(PropTypes.shape({
29 short_name: PropTypes.string,
30 stream_link: PropTypes.string,
31 title: PropTypes.string,
35 export default MultiLink;