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', type: 'attachments', id: account.id, ...(account._remote && { remote_id: account.id, remote_domain: account._remote }) } ] return } export default TabSharedAttachments