\n
{score(props.result.homeScore, props.statusLabel)}
\n {props.statusLabel === 'Plannlagt' || props.statusLabel === 'Avlyst' ?
-
: '-'}\n
{score(props.result.awayScore, props.statusLabel)}
\n
\n )\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"dh-fotball-banner__match-status\":\"dh-fotball-banner-dh-fotball-banner__match-status\",\"dhFotballBannerMatchStatus\":\"dh-fotball-banner-dh-fotball-banner__match-status\",\"dh-fotball-banner__match-status-ongoing\":\"dh-fotball-banner-dh-fotball-banner__match-status-ongoing\",\"dhFotballBannerMatchStatusOngoing\":\"dh-fotball-banner-dh-fotball-banner__match-status-ongoing\",\"dh-fotball-banner__match-status__tvchannel\":\"dh-fotball-banner-dh-fotball-banner__match-status__tvchannel\",\"dhFotballBannerMatchStatusTvchannel\":\"dh-fotball-banner-dh-fotball-banner__match-status__tvchannel\",\"dh-fotball-banner__match-status__live-pulsar\":\"dh-fotball-banner-dh-fotball-banner__match-status__live-pulsar\",\"dhFotballBannerMatchStatusLivePulsar\":\"dh-fotball-banner-dh-fotball-banner__match-status__live-pulsar\",\"pulsating-dot-circle\":\"dh-fotball-banner-pulsating-dot-circle\",\"pulsatingDotCircle\":\"dh-fotball-banner-pulsating-dot-circle\",\"pulsating-dot-pulse\":\"dh-fotball-banner-pulsating-dot-pulse\",\"pulsatingDotPulse\":\"dh-fotball-banner-pulsating-dot-pulse\"};","import { h } from 'preact'\nimport styles from './MatchStatus.module.css'\nimport { IMatchData } from '../../lib/model'\nimport { useCustomContext } from '../../lib/context'\n\ninterface Props {\n matchData: IMatchData\n statusLabel: string\n}\n\nfunction filterTvChannel(tvchannel: String): String {\n if (tvchannel.includes('TV 2 Direkte')) {\n return 'TV 2'\n }\n return tvchannel\n}\n\nexport function MatchStatus(props: Props) {\n const context = useCustomContext()\n const handleClick = () => {\n context?.sendGaEvent({ eventAction: 'click', eventLabel: props.matchData.resultLink })\n }\n return props.statusLabel === 'Plannlagt' ? (\n