//@ts-nocheck

import * as components from './packages/components'
import * as businessComponents from './packages/business-components'
import { DasAutoRegisterAllIcon } from '@das-fed/ui'

DasAutoRegisterAllIcon(import('@das-fed/ui/packages/icons'))

const allComponents = { ...components, ...businessComponents }

const install = (app) => {
  Object.entries(allComponents).forEach(([name, component]) => {
    if (!component?.install) return
    app.component(name, component)
  })
}

export default { install }
export * from './packages/business-components'
export * from './packages/components'
export * from './packages/icons'
