import React from 'react'; import { View, Text, ScrollView, TouchableOpacity, Alert } from 'react-native'; import { useAppTheme } from '@theme'; import { PersonIcon } from '@icons'; import { getStyles } from './inboxScreen.styles'; export const InboxScreen: React.FC = () => { const { colors } = useAppTheme(); const styles = getStyles(colors); const chats = [ { id: 'support', sender: 'SG Partner Support', snippet: 'Hi Rahul, your document verification is complete. Let us know if you need assistance.', time: '10 mins ago', unreadCount: 1, isSystem: true, }, { id: 'rohit', sender: 'Rohit Sharma (Customer)', snippet: 'Please leave the order near the gate, thank you.', time: '1 hour ago', unreadCount: 0, isSystem: false, }, { id: 'ccd', sender: 'Cafe Coffee Day (Merchant)', snippet: 'Hi, the order #ORD125487 is ready for pickup. Please arrive.', time: '2 hours ago', unreadCount: 0, isSystem: false, }, ]; const handleChatPress = (sender: string) => { Alert.alert('Chat Thread', `Opening conversation with ${sender}...`); }; return ( Inbox {chats.map((chat) => ( handleChatPress(chat.sender)} > {/* Sender Avatar */} {/* Chat Content Info */} {chat.sender} {chat.time} {chat.snippet} {/* Unread badge info */} {chat.unreadCount > 0 && ( {chat.unreadCount} )} ))} ); }; export default InboxScreen;