return function(K,U,E)if E==CatalogConstants.ItemType.Asset then local E=K.Assets[U]return E elseif E==CatalogConstants.ItemType.Bundle then local E=K.Bundles[U]return E end end

return function(state, itemId, itemType)
	if itemType == CatalogConstants.ItemType.Asset then
		local asset = state.Assets[itemId]
		--print("ItemData:", asset)
		return asset
	elseif itemType == CatalogConstants.ItemType.Bundle then
		local bundle = state.Bundles[itemId]
		--print("ItemData:", bundle)
		return bundle
	end
end
