import { ProfileHeader } from 'features/ProfileHeader' import { MainWrapper } from 'features/MainWrapper' import { UserFavorites } from 'features/UserFavorites' import { MediaQuery } from 'features/MediaQuery' import { FinishedMatch } from './components/FinishedMatch' import { LiveMatch } from './components/LiveMatch' import { useMatchProfile } from './hooks/useMatchProfile' import { Wrapper } from './styled' const MatchPage = () => { const profile = useMatchProfile() const isLiveMatch = !profile?.calc return ( {(isLiveMatch && profile) && } {(!isLiveMatch && profile) && } ) } export default MatchPage