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.
 
 
 
 
spa_instat_tv/src/features/TeamPage/index.tsx

38 lines
928 B

import React from 'react'
import { ProfileTypes } from 'config'
import { ProfileHeader } from 'features/ProfileHeader'
import { ProfileCard } from 'features/ProfileCard'
import { Matches } from 'features/Matches'
import { UserFavorites } from 'features/UserFavorites'
import { MainWrapper } from 'features/MainWrapper'
import { MediaQuery } from 'features/MediaQuery'
import { useTeamPage } from './hooks'
import { Content } from './styled'
export const TeamPage = () => {
const {
fetchMatches,
infoItems,
titleObj,
} = useTeamPage()
return (
<MainWrapper>
<MediaQuery minDevice='laptop'>
<UserFavorites />
</MediaQuery>
<ProfileHeader />
<Content>
<ProfileCard
profileType={ProfileTypes.TEAMS}
titleObj={titleObj}
infoItems={infoItems}
/>
<Matches fetch={fetchMatches} />
</Content>
</MainWrapper>
)
}