import * as components from '../components/index' import type { App } from 'vue' export const router = (app: App) => { for (const key in components) { app.component(key, components[key as keyof typeof components]) } }