about summary refs log tree commit diff
path: root/src/view/screens/ProfileFollows.tsx
blob: d020fc742d0c9dfbf17a277bad242842e2a75452 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import React, {useEffect} from 'react'
import {ProfileFollows as ProfileFollowsComponent} from '../com/profile/ProfileFollows'
import {ScreenParams} from '../routes'
import {useStores} from '../../state'

export const ProfileFollows = ({visible, params}: ScreenParams) => {
  const store = useStores()
  const {name} = params

  useEffect(() => {
    if (visible) {
      store.nav.setTitle('Followers of')
    }
  }, [store, visible])

  return <ProfileFollowsComponent name={name} />
}