import { inject } from 'vue' import type { App } from '@/services/app' export function useApp(): App { const app = inject('app') if (!app) throw new Error('App not properly initialized') return app }