import format from 'date-fns/format' import { joinMatchLexics } from 'config/lexics/joinMatch' import { usePageParams } from 'hooks/usePageParams' import { T9n } from 'features/T9n' import { Name } from 'features/Name' import { useLexicsConfig } from 'features/LexicsStore' import { useUnauthenticatedMatch } from './hooks' import { Wrapper, MainLogo, HeaderWrapper, Footer, BlockWrapper, MatchInfo, SportImgWrapper, DateInfoWrapper, DateInfo, WatchLive, TeamsNameWrapper, MainInfoTitle, MainInfoButton, MainInfoText, EmptySpan, WatchLiveCircle, WatchLiveText, SportImgMobileDevice, FooterLogo, FooterRights, } from './styled' export const JoinMatchPage = () => { useLexicsConfig(joinMatchLexics) const { sportType } = usePageParams() const { live, matchDate, matchInfo, onJoinClick, } = useUnauthenticatedMatch() const currentYear = format(new Date(), 'Y') return ( {matchInfo?.team1 && ( {matchDate} {live && ( )} )} {matchInfo?.team1 ? ( <> ) : ()} ) }