import { HeaderLeft } from '@components/Header' import { ParseEmojis } from '@components/Parse' import CustomText from '@components/Text' import Timeline from '@components/Timeline' import { TabSharedStackScreenProps } from '@utils/navigation/navigators' import { QueryKeyTimeline } from '@utils/queryHooks/timeline' import { useTheme } from '@utils/styles/ThemeManager' import React, { useEffect } from 'react' import { Trans } from 'react-i18next' const TabSharedAttachments: React.FC> = ({ navigation, route: { params: { account } } }) => { const { colors } = useTheme() useEffect(() => { navigation.setOptions({ headerLeft: () => navigation.goBack()} background />, headerTitle: () => ( , ]} /> ), headerBackVisible: false }) navigation.setParams({ queryKey }) }, []) const queryKey: QueryKeyTimeline = [ 'Timeline', { page: 'Account', id: account.id, exclude_reblogs: true, only_media: true } ] return } export default TabSharedAttachments