blob: 875cc978c8e92f4474a1ceef74a66dac4abd5908 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import React, {useEffect} from 'react'
import {makeRecordUri} from '../lib/strings'
import {PostRepostedBy as PostRepostedByComponent} from '../com/post-thread/PostRepostedBy'
import {ScreenParams} from '../routes'
import {useStores} from '../../state'
export const PostRepostedBy = ({visible, params}: ScreenParams) => {
const store = useStores()
const {name, rkey} = params
const uri = makeRecordUri(name, 'app.bsky.post', rkey)
useEffect(() => {
if (visible) {
store.nav.setTitle('Reposted by')
}
}, [store, visible])
return <PostRepostedByComponent uri={uri} />
}
|