import { onMounted } from 'vue'
import { getAppInstance } from '@inside-core/helpers/getAppInstance'

import DashboardAddModal from '../components/dashboard/modal/DashboardAddModal'

export function useGlobalComponents() {
  const app = getAppInstance()

  onMounted(() => {
    app.component('dashboard-add-modal', DashboardAddModal)
  })
}
