23 lines
503 B
TypeScript
23 lines
503 B
TypeScript
import React from 'react';
|
|
import { View } from 'react-native';
|
|
|
|
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}>
|
|
<View style={[styles.quote, { backgroundColor: themes[theme].borderColor }]} />
|
|
<View style={styles.childContainer}>
|
|
{children}
|
|
</View>
|
|
</View>
|
|
));
|
|
|
|
export default BlockQuote;
|