|
|
|
|
@ -16,7 +16,8 @@ import { Wrapper } from './styled' |
|
|
|
|
const MatchPage = () => { |
|
|
|
|
usePageLogger() |
|
|
|
|
const profile = useMatchProfile() |
|
|
|
|
const hasVideo = profile?.has_video |
|
|
|
|
const playFromScout = profile?.has_video && !profile.live |
|
|
|
|
const playFromOTT = !profile?.has_video && (profile?.live || profile?.storage) |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<PageWrapper> |
|
|
|
|
@ -26,8 +27,8 @@ const MatchPage = () => { |
|
|
|
|
<Main> |
|
|
|
|
<UserFavorites /> |
|
|
|
|
<Wrapper> |
|
|
|
|
{(!hasVideo && profile) && <LiveMatch />} |
|
|
|
|
{(hasVideo && profile) && <FinishedMatch profile={profile} />} |
|
|
|
|
{playFromOTT && <LiveMatch />} |
|
|
|
|
{playFromScout && <FinishedMatch profile={profile} />} |
|
|
|
|
</Wrapper> |
|
|
|
|
</Main> |
|
|
|
|
</PageWrapper> |
|
|
|
|
|