1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Button } from 'react-bootstrap';
5 import { getName, getStreamLink } from '../../helpers/Crew';
6 import { getAvatarUrl } from '../../helpers/User';
8 const Player = ({ player }) => {
9 return <div className="episode-player my-3">
11 className="player-link"
12 href={getStreamLink(player)}
15 variant="outline-twitch"
17 <img alt="" src={getAvatarUrl(player.user)} />
18 <span className="text-light fs-5 fs-md-4">{getName(player)}</span>
24 player: PropTypes.shape({
26 name_override: PropTypes.string,
27 stream_override: PropTypes.string,
28 user: PropTypes.shape({
33 export default Player;