tooot/src/screens/Tabs/Shared/Hashtag.tsx

28 lines
718 B
TypeScript
Raw Normal View History

2021-02-08 23:47:20 +01:00
import Timeline from '@components/Timeline'
2021-02-27 16:33:54 +01:00
import TimelineDefault from '@components/Timeline/Default'
2021-08-29 15:25:38 +02:00
import { TabSharedStackScreenProps } 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-10-26 00:27:53 +01:00
2022-08-07 01:18:10 +02:00
const TabSharedHashtag: React.FC<
TabSharedStackScreenProps<'Tab-Shared-Hashtag'>
> = ({
2020-10-26 00:27:53 +01:00
route: {
params: { hashtag }
}
2020-10-31 21:04:46 +01:00
}) => {
2021-02-27 16:33:54 +01:00
const queryKey: QueryKeyTimeline = ['Timeline', { page: 'Hashtag', hashtag }]
2022-08-07 01:18:10 +02:00
return (
<Timeline
queryKey={queryKey}
customProps={{
renderItem: ({ item }) => (
<TimelineDefault item={item} queryKey={queryKey} />
)
}}
/>
2021-02-27 16:33:54 +01:00
)
2020-10-26 00:27:53 +01:00
}
2020-10-31 21:04:46 +01:00
2021-01-30 01:29:15 +01:00
export default TabSharedHashtag