UNPKG

fm-lp-factory

Version:

package created to build web ui components for FidelizarMais LP services

27 lines (26 loc) 1.04 kB
import carouselOfAwardsWithRedemption from "./carouselOfAwardsWithRedemption.js"; import listOfAllAwards from "./listOfAllAwards.js"; import listOfAllAwardsTable from "./listOfAllAwardsTable.js"; import listOfAllCouponAwards from "./listOfAllCouponAwards.js"; import listOfAllProductAwards from "./listOfAllProductAwards.js"; export default (component) => { switch (component.type) { case "list-of-available-awards": listOfAllAwards(component); break; case "carousel-of-awards-with-redemption": carouselOfAwardsWithRedemption(component.data); break; case "list-of-all-coupon-awards": listOfAllCouponAwards(component.data); break; case "list-of-all-product-awards": listOfAllProductAwards(component.data); break; case "list-of-all-coupon-awards-in-table" : listOfAllAwardsTable(component.data); break; default: break; } }