import { CmsConfig , ContentSlotComponentData , CmsStructureConfig , CmsPageSlotsConfig , } from '@spartacus/core' ; import { LayoutConfig } from '@spartacus/storefront' ; import { DvntCategoriesWrapperComponent } from '../dvnt-categories-wrapper.component' ; export const categoriesWrapperLayoutConfig = { layoutSlots : { ProductListPageTemplate : { md : { slots : [ 'DvntCategoriesWrapper' , 'ProductListSlot' ] , } , } , } , } as LayoutConfig ; export const categoriesWrapperCmsConfig = < CmsConfig > { cmsComponents : { DvntCategoriesWrapperComponent : { component : DvntCategoriesWrapperComponent , } , } , } ; export const staticComponents = { DvntCategoriesWrapperComponent : { typeCode : 'DvntCategoriesWrapperComponent' , flexType : 'DvntCategoriesWrapperComponent' , uid : 'DvntCategoriesWrapperComponent' , } , } ; const cmsPageSlotConfig = { DvntCategoriesWrapper : { componentIds : [ 'DvntCategoriesWrapperComponent' ] , } , } ; export function categoriesWrapperCmsStructureConfig ( ) { return { cmsStructure : { components : { ... staticComponents , } , slots : { ... cmsPageSlotConfig , } , } , } ; } const categoriesWrapperTranslationOverwrites = { en : { product : { productList : { categories : 'Categories' , } , } , } , } ; export const categoriesWrapperTranslationsConfig = { i18n : { resources : categoriesWrapperTranslationOverwrites , } , } ;