// Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/ import type { App } from 'vue' import type { FormKit } from '@formkit/vue' import CommonIcon from '@shared/components/CommonIcon/CommonIcon.vue' import CommonLink from '@shared/components/CommonLink/CommonLink.vue' import CommonDateTime from '@shared/components/CommonDateTime/CommonDateTime.vue' import type { RouterLink, RouterView } from 'vue-router' declare module '@vue/runtime-core' { export interface GlobalComponents { CommonIcon: typeof CommonIcon CommonLink: typeof CommonLink CommonDateTime: typeof CommonDateTime FormKit: typeof FormKit RouterView: typeof RouterView RouterLink: typeof RouterLink } } export default function initializeGlobalComponents(app: App): void { app.component('CommonIcon', CommonIcon) app.component('CommonLink', CommonLink) app.component('CommonDateTime', CommonDateTime) }