import { HeaderLeft, HeaderRight } from '@components/Header' import ScreenSharedAccount from '@screens/Shared/Account' import ScreenSharedAnnouncements from '@screens/Shared/Announcements' import ScreenSharedHashtag from '@screens/Shared/Hashtag' import ScreenSharedImagesViewer from '@screens/Shared/ImagesViewer' import ScreenSharedRelationships from '@screens/Shared/Relationships' import ScreenSharedToot from '@screens/Shared/Toot' import Compose from '@screens/Shared/Compose' import ScreenSharedSearch from '@screens/Shared/Search' import React from 'react' import { useTranslation } from 'react-i18next' import { View } from 'react-native' const sharedScreens = (Stack: any) => { const { t } = useTranslation() return [ { return { headerTranslucent: true, headerStyle: { backgroundColor: `rgba(255, 255, 255, 0)` }, headerCenter: () => null, headerLeft: () => navigation.goBack()} /> } }} />, ({ title: `#${decodeURIComponent(route.params.hashtag)}`, headerLeft: () => navigation.goBack()} /> })} />, ({ title: t('sharedToot:heading'), headerLeft: () => navigation.goBack()} /> })} />, , ({ headerLeft: () => navigation.goBack()} /> })} />, , , ({ title: route.params.account.display_name || route.params.account.name, headerLeft: () => navigation.goBack()} /> })} /> ] } export default sharedScreens