import { useLocalSearchParams, useRouter } from 'expo-router'; import { YStack, Paragraph, H1, Avatar } from 'tamagui'; const ChatPage = () => { const router = useRouter(); // Access route parameters passed from ContactsPage const contact = useLocalSearchParams() console.log(contact) if (!contact) { return Something Went Wrong... please go back; } return (

Chat with {contact.name}

{/* Display Avatar */} {/* Display Status */} Status: {contact.status} {/* Chat UI would go here */}
); }; export default ChatPage;