\n
\n {collectElementsList(props.matches, setTodayElement)}\n
\n
\n )\n}\n\nconst isToday = (matchDateStr) => {\n const matchDate = new Date(matchDateStr)\n const today = new Date()\n return (\n matchDate.getDate() === today.getDate() &&\n matchDate.getMonth() === today.getMonth() &&\n matchDate.getFullYear() === today.getFullYear()\n )\n}\n\nconst MONTHS = [\n 'jan.',\n 'feb.',\n 'mars',\n 'april',\n 'mai',\n 'juni',\n 'juli',\n 'aug.',\n 'sept.',\n 'okt.',\n 'nov.',\n 'des.',\n]\n\nfunction formatDate(matchDate) {\n if (!matchDate) {\n return matchDate\n }\n const date = new Date(matchDate)\n return `${date.getDate()}. ${MONTHS[date.getMonth()]}`\n}\n\nexport function collectElementsList(matches: IMatchesByDay, setTodayElement) {\n const elementsList = []\n Object.keys(matches).forEach((matchDay) => {\n if (isToday(matchDay)) {\n const timeElement: h.JSX.Element = (\n