// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {StyleProp, StyleSheet, TextStyle, View, ViewStyle} from 'react-native'; import Markdown from '@components/markdown'; import {PostMetadata} from '@mm-redux/types/posts'; type Props = { baseTextStyle: StyleProp; blockStyles?: StyleProp[]; metadata?: PostMetadata; onPermalinkPress?: () => void; textStyles?: StyleProp[]; value?: string; } export default function AttachmentPreText(props: Props) { const { baseTextStyle, blockStyles, metadata, onPermalinkPress, value, textStyles, } = props; if (!value) { return null; } return ( ); } const style = StyleSheet.create({ container: { marginTop: 5, }, });