import mitt from "mitt";

export type MittEvents = {
  // event needed so that the App components do re-render
  // and reload the current course session
  switchedCourseSession: number;

  finishedLearningContent: boolean;
};

const eventBus = mitt<MittEvents>();

export default eventBus;
