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 CrewMember = ({ crew }) => {
13 if (!crew.confirmed) {
14 classNames.push('unconfirmed');
17 className={classNames.join(' ')}
18 href={getStreamLink(crew) || null}
21 variant="outline-twitch"
23 <img alt="" src={getAvatarUrl(crew.user)} />
24 <span>{getName(crew)}</span>
28 CrewMember.propTypes = {
29 crew: PropTypes.shape({
30 confirmed: PropTypes.bool,
32 user: PropTypes.shape({
37 export default CrewMember;