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 }) => {
|
2021-08-14 01:18:22 +00:00
|
|
|
const { theme } = useTheme();
|
2021-08-12 21:05:18 +00:00
|
|
|
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;
|