import { HeaderLeft } from '@components/Header' import { createNativeStackNavigator } from '@react-navigation/native-stack' import { StackScreenProps } from '@react-navigation/stack' import React, { useCallback } from 'react' import { useTranslation } from 'react-i18next' import { KeyboardAvoidingView, Platform } from 'react-native' import { SafeAreaView } from 'react-native-safe-area-context' import ComposeEditAttachmentRoot from './EditAttachment/Root' import ComposeEditAttachmentSubmit from './EditAttachment/Submit' const Stack = createNativeStackNavigator() export type ScreenComposeEditAttachmentProp = StackScreenProps< Nav.ScreenComposeStackParamList, 'Screen-Compose-EditAttachment' > const ComposeEditAttachment: React.FC = ({ route: { params: { index } }, navigation }) => { const { t } = useTranslation('screenCompose') const headerLeft = useCallback( () => ( navigation.goBack()} /> ), [] ) const children = useCallback( () => , [] ) return ( , headerTitle: t('content.editAttachment.header.title') }} /> ) } export default ComposeEditAttachment