import { HeaderLeft } from '@components/Header' import { createNativeStackNavigator } from '@react-navigation/native-stack' import { TabMeStackParamList } from '@utils/navigation/navigators' import React from 'react' import { useTranslation } from 'react-i18next' import TabShared from '../Shared' import TabMeBookmarks from './Bookmarks' import TabMeConversations from './Cconversations' import TabMeFavourites from './Favourites' import TabMeFollowedTags from './FollowedTags' import TabMeList from './List' import TabMeListAccounts from './List/Accounts' import TabMeListEdit from './List/Edit' import TabMeListList from './List/List' import TabMePreferences from './Preferences' import TabMeProfile from './Profile' import TabMePush from './Push' import TabMeRoot from './Root' import TabMeSettings from './Settings' import TabMeSettingsFontsize from './SettingsFontsize' import TabMeSettingsLanguage from './SettingsLanguage' import TabMeSwitch from './Switch' const Stack = createNativeStackNavigator() const TabMe: React.FC = () => { const { t } = useTranslation('screenTabs') return ( ({ title: t('me.stacks.bookmarks.name'), headerLeft: () => navigation.pop(1)} /> })} /> ({ title: t('me.stacks.conversations.name'), headerLeft: () => navigation.pop(1)} /> })} /> ({ title: t('me.stacks.favourites.name'), headerLeft: () => navigation.pop(1)} /> })} /> ({ title: t('me.stacks.followedTags.name'), headerLeft: () => navigation.pop(1)} /> })} /> ({ title: t('me.stacks.list.name', { list: route.params.title }), headerLeft: () => navigation.pop(1)} /> })} /> ({ title: t('me.stacks.listAccounts.name', { list: params.title }), headerLeft: () => navigation.pop(1)} /> })} /> ({ title: t('me.stacks.lists.name'), headerLeft: () => navigation.pop(1)} /> })} /> ({ title: t('me.stacks.push.name'), headerLeft: () => navigation.goBack()} /> })} /> ({ title: t('me.stacks.settings.name'), headerLeft: () => navigation.pop(1)} /> })} /> ({ title: t('me.stacks.fontSize.name'), headerLeft: () => navigation.pop(1)} /> })} /> ({ title: t('me.stacks.language.name'), headerLeft: () => navigation.pop(1)} /> })} /> ({ presentation: 'modal', headerShown: true, title: t('me.stacks.switch.name'), headerLeft: () => ( navigation.goBack()} /> ) })} /> {TabShared(Stack)} ) } export default TabMe