14 lines
291 B
TypeScript
14 lines
291 B
TypeScript
import mitt from "mitt";
|
|
|
|
export type MittEvents = {
|
|
// event needed so that the App components do re-render
|
|
// and reload the current course session
|
|
switchedCourseSession: string;
|
|
|
|
finishedLearningContent: boolean;
|
|
};
|
|
|
|
const eventBus = mitt<MittEvents>();
|
|
|
|
export default eventBus;
|