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,22 @@
local CorePackages = game:GetService("CorePackages")
local Rodux = require(CorePackages.Rodux)
local SetProduct = require(script.Parent.Parent.Actions.SetProduct)
local HidePrompt = require(script.Parent.Parent.Actions.HidePrompt)
local ProductReducer = Rodux.createReducer({}, {
[SetProduct.name] = function(state, action)
return {
id = action.id,
infoType = action.infoType,
equipIfPurchased = action.equipIfPurchased,
}
end,
[HidePrompt.name] = function(state, action)
-- Clear product info when we hide the prompt
return {}
end,
})
return ProductReducer