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"; // }; const group = {0: {id: 5, day: 4, time: "11.45", lecturer: "dr Dorota Blinkiewicz", room: "A2-3"}} return (
{[...Array(5)].map((value, index) => (
{groups.map((value, index) => (
{groups[index]?.lecturer}
))}
))}
); };