fm-lp-factory
Version:
package created to build web ui components for FidelizarMais LP services
16 lines (15 loc) • 668 B
JavaScript
import carouselForImagesWithControlTopLeft from "./carouselForImagesWithControlTopLeft.js";
import carouselGamificationWithControlTopLeft from "./carouselGamificationWithControlTopLeft.js";
export default (component) => {
switch (component.type) {
case "carrousel-for-images-with-control-top-left":
carouselForImagesWithControlTopLeft(component.data);
break;
case "carrousel-gamification-with-control-top-left":
carouselGamificationWithControlTopLeft(component.data);
break;
default:
console.error("Component type not found", component);
break;
}
}