import createBoom from "./createBoom";
import createCandy2 from "./createCandy2";
import createDonut from "./createDonut";
import createEgg from "./createEgg";
import createGift2 from "./createGift2";
import createIceCream from "./createIceCream";
import createGift3 from "./createGift3";
import LabelType from "../LabelType";

const createItem = (scale,type) => {
    const datas = {};
    datas[LabelType.Boom]=createBoom;
    datas[LabelType.IceCream]=createIceCream;
    datas[LabelType.Donut]=createDonut;
    datas[LabelType.Candy2]=createCandy2;
    datas[LabelType.Gift2]=createGift2;
    // datas[LabelType.Gift3]=createGift3;
    datas[LabelType.Egg]=createEgg;
    const mc = datas[type](scale);
    return mc;
}

export default createItem;