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.
38 lines
825 B
38 lines
825 B
import { usePageLogger } from 'hooks/usePageLogger'
|
|
|
|
import { ProfileHeader } from 'features/ProfileHeader'
|
|
import { ProfileCard } from 'features/ProfileCard'
|
|
import { Matches } from 'features/Matches'
|
|
import { UserFavorites } from 'features/UserFavorites'
|
|
import {
|
|
PageWrapper,
|
|
Main,
|
|
Content,
|
|
} from 'features/PageLayout'
|
|
|
|
import { usePlayerPage } from './hooks'
|
|
|
|
const PlayerPage = () => {
|
|
usePageLogger()
|
|
const {
|
|
fetchMatches,
|
|
profile,
|
|
teamId,
|
|
} = usePlayerPage()
|
|
|
|
return (
|
|
<PageWrapper>
|
|
<ProfileHeader profileId={teamId}>
|
|
{profile && <ProfileCard profile={profile} />}
|
|
</ProfileHeader>
|
|
<Main>
|
|
<UserFavorites />
|
|
<Content>
|
|
<Matches fetch={fetchMatches} />
|
|
</Content>
|
|
</Main>
|
|
</PageWrapper>
|
|
)
|
|
}
|
|
|
|
export default PlayerPage
|
|
|