You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
557 B

import Profile from '@/components/Profile'
import { useFetchProfile } from '@/hooks'
import SecondaryPageLayout from '@/layouts/SecondaryPageLayout'
import { forwardRef } from 'react'
const ProfilePage = forwardRef(({ id, index }: { id?: string; index?: number }, ref) => {
const { profile } = useFetchProfile(id)
return (
<SecondaryPageLayout index={index} title={profile?.username} displayScrollToTopButton ref={ref}>
<Profile id={id} />
</SecondaryPageLayout>
)
})
ProfilePage.displayName = 'ProfilePage'
export default ProfilePage