import mitt from 'mitt' type Events = { openPost: IPost startLoading: boolean eventBus: INotification } const emitter = mitt() export default emitter