import { HeaderCenter } from '@components/Header' import Timeline from '@components/Timelines/Timeline' import sharedScreens from '@screens/Tabs/Shared/sharedScreens' import { getLocalActiveIndex } from '@utils/slices/instancesSlice' import React from 'react' import { useTranslation } from 'react-i18next' import { Platform } from 'react-native' import { createNativeStackNavigator } from 'react-native-screens/native-stack' import { useSelector } from 'react-redux' const Stack = createNativeStackNavigator() const TabNotifications: React.FC = () => { const { t } = useTranslation() const localActiveIndex = useSelector(getLocalActiveIndex) return ( null, headerTitle: t('notifications:heading'), ...(Platform.OS === 'android' && { headerCenter: () => ( ) }), headerHideShadow: true, headerTopInsetEnabled: false }} > {() => localActiveIndex !== null ? : null } {sharedScreens(Stack as any)} ) } export default TabNotifications