mirror of https://github.com/tooot-app/app
27 lines
831 B
TypeScript
27 lines
831 B
TypeScript
import Timeline from '@components/Timeline'
|
|
import TimelineDefault from '@components/Timeline/Default'
|
|
import { NativeStackScreenProps } from '@react-navigation/native-stack'
|
|
import { TabMeStackParamList } from '@utils/navigation/navigators'
|
|
import { QueryKeyTimeline } from '@utils/queryHooks/timeline'
|
|
import React, { useEffect } from 'react'
|
|
|
|
const TabMeBookmarks: React.FC<NativeStackScreenProps<TabMeStackParamList, 'Tab-Me-Bookmarks'>> = ({
|
|
navigation
|
|
}) => {
|
|
const queryKey: QueryKeyTimeline = ['Timeline', { page: 'Bookmarks' }]
|
|
useEffect(() => {
|
|
navigation.setParams({ queryKey: queryKey })
|
|
}, [])
|
|
|
|
return (
|
|
<Timeline
|
|
queryKey={queryKey}
|
|
customProps={{
|
|
renderItem: ({ item }) => <TimelineDefault item={item} queryKey={queryKey} />
|
|
}}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default TabMeBookmarks
|