import React from 'react'; import { Image, StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; import { CustomIcon } from '../lib/Icons'; import { themes } from '../constants/colors'; const styles = StyleSheet.create({ style: { marginRight: 7, marginTop: 3 }, discussion: { marginRight: 6 } }); const RoomTypeIcon = React.memo(({ type, size, isGroupChat, style, theme }) => { if (!type) { return null; } const color = themes[theme].auxiliaryText; if (type === 'discussion') { // FIXME: These are temporary only. We should have all room icons on , but our design team is still working on this. return ; } if (type === 'c') { return ; } if (type === 'd') { if (isGroupChat) { return ; } return ; } if (type === 'l') { return ; } return ; }); RoomTypeIcon.propTypes = { theme: PropTypes.string, type: PropTypes.string, isGroupChat: PropTypes.bool, size: PropTypes.number, style: PropTypes.object }; RoomTypeIcon.defaultProps = { size: 10 }; export default RoomTypeIcon;