import DefaultLayout from './Default-Layout'
import TodoList from './Todo-List'
import TabsCard from './Tabs-Card'
import TodoListPage from './Todo-List-Page'
import HrhxDate from '../HrhxDatePicker/HrhxDate'
import HrhxDatePicker from '../HrhxDatePicker/HrhxDatePicker'
import HrhxDateRangePicker from '../HrhxDatePicker/HrhxDateRangePicker'

const components = [
    DefaultLayout,
    TodoList,
    TabsCard,
    TodoListPage,
    HrhxDate,
    HrhxDatePicker,
    HrhxDateRangePicker
]

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

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

export default {
    install,
    DefaultLayout,
    TodoList,
    TabsCard,
    TodoListPage,
    HrhxDate,
    HrhxDatePicker,
    HrhxDateRangePicker
}
