verdnatura-chat/app/containers/markdown/MessageBody/Quote.js

27 lines
582 B
JavaScript
Raw Normal View History

2021-08-12 21:05:18 +00:00
import React from 'react';
import { View } from 'react-native';
import PropTypes from 'prop-types';
import { themes } from '../../../constants/colors';
import { useTheme } from '../../../theme';
import styles from '../styles';
const Quote = ({ value }) => {
const theme = useTheme();
return (
<>
<View style={styles.container}>
<View style={[styles.quote, { backgroundColor: themes[theme].borderColor }]} />
<View style={styles.childContainer}>
{value}
</View>
</View>
</>
);
};
Quote.propTypes = {
value: PropTypes.string
};
export default Quote;