import { App , InjectionKey , inject } from 'vue' ; import { AppClientConfig } from '../../shared' ; export const appConfigSymbol = Symbol ( '[iles-app-config]' ) ; export function installAppConfig ( app , config ) { app . provide ( appConfigSymbol , config ) ; } export function useAppConfig ( ) { const data = inject ( appConfigSymbol ) ; if ( ! data ) throw new Error ( 'App config not properly injected in app' ) ; return data ; }