import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import moment from 'moment'; import I18n from '../../i18n'; import Item from './Item'; const Timezone = ({ utcOffset, Message_TimeFormat, theme }) => (utcOffset ? ( ) : null); Timezone.propTypes = { utcOffset: PropTypes.number, Message_TimeFormat: PropTypes.string, theme: PropTypes.string }; const mapStateToProps = state => ({ Message_TimeFormat: state.settings.Message_TimeFormat }); export default connect(mapStateToProps)(Timezone);