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

22 lines
413 B
TypeScript
Raw Normal View History

2021-02-08 23:47:20 +01:00
import Timeline from '@components/Timeline'
2021-01-07 22:18:14 +01:00
import React from 'react'
import { SharedTootProp } from './sharedScreens'
2020-10-29 14:52:28 +01:00
2021-01-30 01:29:15 +01:00
const TabSharedToot: React.FC<SharedTootProp> = ({
2020-10-29 14:52:28 +01:00
route: {
2021-02-13 01:26:02 +01:00
params: { toot, rootQueryKey }
2020-10-29 14:52:28 +01:00
}
2020-10-31 21:04:46 +01:00
}) => {
2021-02-13 01:26:02 +01:00
return (
<Timeline
page='Toot'
toot={toot.id}
rootQueryKey={rootQueryKey}
disableRefresh
disableInfinity
/>
)
2020-10-29 14:52:28 +01:00
}
2020-10-31 21:04:46 +01:00
2021-01-30 01:29:15 +01:00
export default TabSharedToot