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

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

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

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