verdnatura-chat/app/containers/markdown/BlockQuote.tsx

20 lines
495 B
TypeScript
Raw Normal View History

import React from 'react';
import { View } from 'react-native';
2019-12-04 16:39:53 +00:00
import { themes } from '../../constants/colors';
import styles from './styles';
interface IBlockQuote {
children: JSX.Element;
theme: string;
}
const BlockQuote = React.memo(({ children, theme }: IBlockQuote) => (
<View style={styles.container}>
2019-12-04 16:39:53 +00:00
<View style={[styles.quote, { backgroundColor: themes[theme].borderColor }]} />
<View style={styles.childContainer}>{children}</View>
</View>
));
export default BlockQuote;