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

import DomainModal from '../components/modals/DomainModal'
import OffersModal from '../components/modals/OffersModal'

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

  onMounted(() => {
    app.component('domain-modal', DomainModal)
    app.component('offers-modal', OffersModal)
  })
}
