27 lines
582 B
JavaScript
27 lines
582 B
JavaScript
|
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;
|