import mitt from 'mitt'

export type EventBusOnPageBackData = { name: string, data: any }
type Events = {
  pageActionListenOnPageBack: EventBusOnPageBackData,
}

export const EventBus = mitt<Events>();