import { Context } from '@vue-storefront/core' ; import { StoreConfig } from '@vue-storefront/magento-api' ; import { useConfigFactory , UseConfigFactoryParams } from '../../factories/useConfigFactory' ; import { UseConfig } from '../../types/composables' ; const factoryParams = { loadConfig : async ( context , params ) => { const { data } = await context . $magento . api . storeConfig ( ) ; return data . storeConfig || { } ; } , } ; const useConfig = useConfigFactory < StoreConfig > ( factoryParams ) ; export default useConfig ;