export const mapTypeCategoryDataToActionListModel = (categories) => {
    return categories.map(category => {
        return {
            id: category.id,
            type: "actionable",
            additionalInformation: {
                "stretch-start": {
                    center: [{ imgSrc: category.icon || undefined }]
                }
            },
            caption: category.name,
            part: `category-${category.id}`
        };
    });
};
export const mapTypeDataToActionListModel = (types, selectedCategoryId, selectedTypeId) => {
    return types.map(type => {
        return {
            id: `${type.id}`,
            type: "actionable",
            imageSrc: "objects/design",
            selected: selectedTypeId === type.id,
            additionalInformation: {
                "stretch-start": {
                    center: [{ imgSrc: type.icon }]
                }
            },
            caption: type.name,
            part: `type-${selectedCategoryId}-${type.id}`
        };
    });
};
//# sourceMappingURL=helpers.js.map
