import React, { useCallback, useMemo } from 'react' import { Pressable, StyleSheet, View } from 'react-native' import { useNavigation } from '@react-navigation/native' import TimelineAvatar from '@components/Timelines/Timeline/Shared/Avatar' import TimelineHeaderConversation from '@components/Timelines/Timeline/Shared/HeaderConversation' import TimelineContent from '@components/Timelines/Timeline/Shared/Content' import { StyleConstants } from '@utils/styles/constants' import TimelineActions from '@components/Timelines/Timeline/Shared/Actions' export interface Props { item: Mastodon.Conversation queryKey: App.QueryKey highlighted?: boolean } // Unread and mark as unread const TimelineConversation: React.FC = ({ item, queryKey, highlighted = false }) => { const navigation = useNavigation() const conversationOnPress = useCallback( () => item.last_status && navigation.navigate('Screen-Shared-Toot', { toot: item.last_status }), [] ) const conversationChildren = useMemo(() => { return ( item.last_status && ( ) ) }, []) return ( ) } const styles = StyleSheet.create({ conversationView: { flex: 1, flexDirection: 'column', padding: StyleConstants.Spacing.Global.PagePadding }, header: { flex: 1, width: '100%', flexDirection: 'row' } }) export default TimelineConversation