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