import React from 'react'; import { View, ViewStyle } from 'react-native'; import Avatar from '../../../base/avatar/components/Avatar'; import { ISubtitle } from '../../../subtitles/types'; import SubtitleMessage from './SubtitleMessage'; import { closedCaptionsStyles } from './styles'; interface IProps { messages: ISubtitle[]; senderId: string; } export function SubtitlesGroup({ messages, senderId }: IProps) { if (!messages.length) { return null; } return ( { messages.map((message, index) => ( )) } ); }