import React from "react"; import "./index.scss"; import Class, { Group } from "../Class"; import BusinessLogicContext from "../../buisnesslogic/BusinessLogicContext"; import { BuisnessProvided } from "../../buisnesslogic/BuisnessLogicProvider"; interface RightBarProps { onClassHover: (group_id: String, class_id: String) => void; onClassClick: (group_id: String, class_id: String) => void; lectures: Array; } interface RightBarState {} export default class RightBar extends React.Component< RightBarProps, RightBarState > { render() { return (
{(context) => (

{JSON.stringify( (context as BuisnessProvided).states.user ?.ticket )}

)}
{this.props.lectures.map((classgroup, index) => ( ))}
); } }