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

import LifestyleModal from '../components/lifestyle/LifestyleModal'

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

  onMounted(() => {
    app.component('lifestyle-modal', LifestyleModal)
  })
}
