// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {StyleProp, TextStyle, View, ViewStyle} from 'react-native'; import EmbeddedBinding from './embedded_binding'; import {Theme} from '@mm-redux/types/preferences'; import {AppBinding} from '@mm-redux/types/apps'; type Props = { embeds: AppBinding[], baseTextStyle?: StyleProp, blockStyles?: StyleProp[], deviceHeight: number, deviceWidth: number, postId: string, onPermalinkPress?: () => void, theme: Theme, textStyles?: StyleProp[], } export default function EmbeddedBindings(props: Props) { const { embeds, baseTextStyle, blockStyles, deviceHeight, onPermalinkPress, postId, theme, textStyles, } = props; const content = [] as React.ReactNode[]; embeds.forEach((embed, i) => { content.push( , ); }); return ( {content} ); }