tooot/src/screens/Tabs/Me/ListsList.tsx

27 lines
693 B
TypeScript
Raw Normal View History

2021-02-08 23:47:20 +01:00
import Timeline from '@components/Timeline'
2021-03-06 21:01:38 +01:00
import TimelineDefault from '@components/Timeline/Default'
2021-08-29 15:25:38 +02:00
import { TabMeStackScreenProps } from '@utils/navigation/navigators'
2021-02-27 16:33:54 +01:00
import { QueryKeyTimeline } from '@utils/queryHooks/timeline'
2022-08-07 01:18:10 +02:00
import React from 'react'
2020-11-22 00:46:23 +01:00
2021-08-29 15:25:38 +02:00
const TabMeListsList: React.FC<TabMeStackScreenProps<'Tab-Me-Lists-List'>> = ({
2020-11-22 00:46:23 +01:00
route: {
params: { list }
}
}) => {
2021-02-27 16:33:54 +01:00
const queryKey: QueryKeyTimeline = ['Timeline', { page: 'List', list }]
2022-08-07 01:18:10 +02:00
return (
<Timeline
queryKey={queryKey}
customProps={{
renderItem: ({ item }) => (
<TimelineDefault item={item} queryKey={queryKey} />
)
}}
/>
)
2020-11-22 00:46:23 +01:00
}
2021-05-09 21:59:03 +02:00
export default TabMeListsList