This commit is contained in:
lx
2026-07-06 14:01:11 -04:00
commit c4f97d729d
16468 changed files with 935321 additions and 0 deletions
@@ -0,0 +1,24 @@
local CorePackages = game:GetService("CorePackages")
local Rodux = require(CorePackages.Rodux)
local ProductInfoReceived = require(script.Parent.Parent.Actions.ProductInfoReceived)
local getPreviewImageUrl = require(script.Parent.Parent.getPreviewImageUrl)
local ProductInfoReducer = Rodux.createReducer({}, {
[ProductInfoReceived.name] = function(state, action)
local productInfo = action.productInfo
return {
name = productInfo.Name,
price = productInfo.PriceInRobux or 0,
imageUrl = getPreviewImageUrl(productInfo),
assetTypeId = productInfo.AssetTypeId,
productId = productInfo.ProductId,
bcLevelRequired = productInfo.MinimumMembershipLevel,
}
end,
})
return ProductInfoReducer