import mitt from 'mitt'

type EventList = {
  login?: string
  logout?: string
  openPage?: string
  closePage: string
  loading: 'start' | 'finish' | 'error'
  widgetSelected: {
    id: string
    x: number
    y: number
  }
}

export default mitt<EventList>()
