import React from "react"; import { Group } from "../../../businesslogic/types/group"; interface SchedulerRowProps { groups: Array; indexRow: number; cellTop: number; cellWidth: number; } export const SchedulerRow = ({ groups, indexRow, cellTop, cellWidth, }: SchedulerRowProps) => { // const handleEventClick = (e: React.MouseEvent) => { // const eventDiv = e.target as HTMLDivElement; // eventDiv.style.backgroundColor = "#1547C5"; // }; console.log(`You passed me these of a groupzzz: ${groups}`) return (
{[...Array(5)].map((value, eventIndex) => (
{groups.map((group, index) => ( parseInt(group.day) === eventIndex ?
{groups[index]?.lecturer}
: null ))}
))}
); };