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

import FlashInfoModal from '../components/modals/FlashInfoModal'
import JobsModal from '../components/jobs/JobsModal'

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

  onMounted(() => {
    app.component('flash-info-modal', FlashInfoModal)
    app.component('jobs-modal', JobsModal)
  })
}
