// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. const Modal = ReactBootstrap.Modal; export default class ChannelInfoModal extends React.Component { render() { let channel = this.props.channel; if (!channel) { channel = { display_name: 'No Channel Found', name: 'No Channel Found', id: 'No Channel Found' }; } return ( {channel.display_name}
{'Channel Name:'}
{channel.display_name}
{'Channel Handle:'}
{channel.name}
{'Channel ID:'}
{channel.id}
); } } ChannelInfoModal.propTypes = { show: React.PropTypes.bool.isRequired, onHide: React.PropTypes.func.isRequired, channel: React.PropTypes.object.isRequired };