import React, { useCallback } from 'react' import { useNavigation, useRoute, type RouteProp, } from '@react-navigation/native' import type { NativeStackNavigationProp } from '@react-navigation/native-stack' import { SafeAreaView } from 'react-native-safe-area-context' import { StyleSheet } from 'react-native' import { useTranslation } from 'react-i18next' import { CustomNavbar } from '@tencentcloud/chat-uikit-react-native' import { C2CChatSetting, GroupChatSetting, } from '@tencentcloud/chat-uikit-react-native' import type { UserPickerType as ChatSettingUserPickerType } from '@tencentcloud/chat-uikit-react-native' type RootStackParamList = { ChatSetting: { conversationID: string; type: 'C2C' | 'GROUP'; showType?: number } GroupMemberList: { conversationID: string; hideMember?: boolean } GroupManagement: { conversationID: string } UserPicker: { businessType: ChatSettingUserPickerType; routeParams?: Record } } type Nav = NativeStackNavigationProp export const ChatSettingScreen: React.FC = () => { const navigation = useNavigation