blob: 5b8fa951c846445ee56e6da415d3f8029e43e9be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import React from 'react'
import {AdxUri} from '@adxp/mock-api'
import {Shell} from '../../shell'
import type {RootTabsScreenProps} from '../../routes/types'
import {PostThread as PostThreadComponent} from '../../com/post-thread/PostThread'
export const PostThread = ({
navigation,
route,
}: RootTabsScreenProps<'PostThread'>) => {
const {name, recordKey} = route.params
const urip = new AdxUri(`adx://todo/`)
urip.host = name
urip.collection = 'blueskyweb.xyz:Posts'
urip.recordKey = recordKey
const uri = urip.toString()
const onNavigateContent = (screen: string, props: Record<string, string>) => {
navigation.navigate(screen, props)
}
return (
<Shell>
<PostThreadComponent uri={uri} onNavigateContent={onNavigateContent} />
</Shell>
)
}
|