// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import React, {PropTypes} from 'react'; import {connect} from 'react-redux'; import { TouchableOpacity, View } from 'react-native'; import FormattedText from 'app/components/formatted_text'; import {getTheme} from 'app/selectors/preferences'; function CreateButton(props) { return ( props.emitter('new_channel')} style={{paddingHorizontal: 15}} > ); } CreateButton.propTypes = { emitter: PropTypes.func.isRequired, theme: PropTypes.object }; CreateButton.defaultProps = { theme: {} }; function mapStateToProps(state) { return { theme: getTheme(state) }; } export default connect(mapStateToProps)(CreateButton);