// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import PropTypes from 'prop-types'; import React, {PureComponent} from 'react'; import { StyleSheet, View, } from 'react-native'; import CompassIcon from '@components/compass_icon'; export default class MarkdownBlockQuote extends PureComponent { static propTypes = { continue: PropTypes.bool, iconStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]), children: PropTypes.oneOfType([PropTypes.node, PropTypes.arrayOf([PropTypes.node])]), }; render() { let icon; if (!this.props.continue) { icon = ( ); } return ( {icon} {this.props.children} ); } } const style = StyleSheet.create({ container: { alignItems: 'flex-start', flexDirection: 'row', }, childContainer: { flex: 1, }, icon: { width: 23, }, });