import React from 'react' import ScreenSharedAccount from '@screens/Shared/Account' import ScreenSharedHashtag from '@screens/Shared/Hashtag' import ScreenSharedToot from '@screens/Shared/Toot' import ScreenSharedWebview from '@screens/Shared/Webview' import Compose from '@screens/Shared/Compose' import ComposeEditAttachment from '@screens/Shared/Compose/EditAttachment' import ScreenSharedSearch from '@screens/Shared/Search' import { useTranslation } from 'react-i18next' import { HeaderLeft } from '@root/components/Header' const sharedScreens = (Stack: any) => { const { t } = useTranslation() 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()} /> ) })} />, ({ stackPresentation: 'modal' })} />, , , ] } export default sharedScreens