import React, { useContext } from 'react'; import { SchedulerRow } from './SchedulerRow'; import { coursesContext } from '../contexts/CoursesProvider'; import { selectGroupsToShow } from '../utils/index'; import { ROWS_COUNT } from '../constants'; interface SchedulerEventsProps { cellWidth: number; cellHeight: number; } export const SchedulerEvents = ({ cellWidth, cellHeight }: SchedulerEventsProps) => { const { selectSchedulerEvents } = useContext(coursesContext)!; const schedulerEvents = selectSchedulerEvents(); return (