import AdminLayout from './AdminLayout'
import AdminTodoList from './AdminTodoList'
import AdminModal from './AdminModal'
import AdminRequiredSign from './AdminRequiredSign'
import AdminIconTitle from './AdminIconTitle'
import AdminTabs from './AdminTabs'

const components = [AdminLayout, AdminTodoList, AdminModal, AdminRequiredSign, AdminIconTitle, AdminTabs]

const install = function (Vue) {
  components.forEach(component => {
    Vue.component(component.name, component)
  })
}

if (typeof window !== 'undefined' && window.Vue) {
  install(Window.Vue)
}

export default {
  install,
  AdminLayout,
  AdminTodoList,
  AdminModal,
  AdminRequiredSign,
  AdminIconTitle,
  AdminTabs
}
