2021-02-08 23:47:20 +01:00
|
|
|
import Timeline from '@components/Timeline'
|
2021-02-28 17:41:21 +01:00
|
|
|
import TimelineDefault from '@components/Timeline/Default'
|
2021-02-27 16:33:54 +01:00
|
|
|
import { QueryKeyTimeline } from '@utils/queryHooks/timeline'
|
2021-02-28 17:41:21 +01:00
|
|
|
import React, { useCallback } from 'react'
|
2020-11-22 00:46:23 +01:00
|
|
|
|
2021-05-09 21:59:03 +02:00
|
|
|
const TabMeFavourites = React.memo(
|
2021-02-08 23:47:20 +01:00
|
|
|
() => {
|
2021-02-27 16:33:54 +01:00
|
|
|
const queryKey: QueryKeyTimeline = ['Timeline', { page: 'Favourites' }]
|
2021-02-28 17:41:21 +01:00
|
|
|
const renderItem = useCallback(
|
|
|
|
({ item }) => <TimelineDefault item={item} queryKey={queryKey} />,
|
|
|
|
[]
|
|
|
|
)
|
2021-02-27 16:33:54 +01:00
|
|
|
|
2021-02-28 17:41:21 +01:00
|
|
|
return <Timeline queryKey={queryKey} customProps={{ renderItem }} />
|
2021-02-08 23:47:20 +01:00
|
|
|
},
|
|
|
|
() => true
|
|
|
|
)
|
2020-11-22 00:46:23 +01:00
|
|
|
|
2021-05-09 21:59:03 +02:00
|
|
|
export default TabMeFavourites
|