1 import PropTypes from 'prop-types';
2 import React from 'react';
4 import Icon from '../common/Icon';
6 const getIcon = channel => {
7 if (channel.type === 0) {
8 return <Icon.HASH title="" />;
10 if (channel.type === 2) {
11 return <Icon.VOLUME title="" />;
16 const Box = ({ channel }) => <div className="channel-box">
18 <span>{channel.name}</span>
22 channel: PropTypes.shape({
23 name: PropTypes.string,