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

import ArticlesModal from '../components/modals/ArticlesModal'

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

  onMounted(() => {
    app.component('articles-modal', ArticlesModal)
  })
}
