mattermost-mobile/app/components/markdown/markdown_block_quote/index.tsx
Elias Nahum 784b05fe97
Upgrade Dependencies (#7299)
* upgrade reanimated

* update devDependencies

* upgrade react-intl

* update react-native and some dependencies

* update react-native-permissions

* update RN

* use Share sheet for Report a problem

* update Sentry

* remove step to downloadWebRTC

* update detox deps

* feedback review
2023-04-21 12:16:54 -04:00

48 lines
1.2 KiB
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React, {type ReactNode} from 'react';
import {StyleSheet, type TextStyle, View, type ViewStyle} from 'react-native';
import CompassIcon from '@components/compass_icon';
type MarkdownBlockQuoteProps = {
continueBlock?: boolean;
iconStyle: ViewStyle | TextStyle;
children: ReactNode | ReactNode[];
};
const style = StyleSheet.create({
container: {
alignItems: 'flex-start',
flexDirection: 'row',
},
childContainer: {
flex: 1,
},
icon: {
width: 23,
},
});
const MarkdownBlockQuote = ({children, continueBlock, iconStyle}: MarkdownBlockQuoteProps) => {
return (
<View
style={style.container}
testID='markdown_block_quote'
>
{!continueBlock && (
<View style={style.icon}>
<CompassIcon
name='format-quote-open'
style={iconStyle}
size={20}
/>
</View>
)}
<View style={style.childContainer}>{children}</View>
</View>
);
};
export default MarkdownBlockQuote;