add gs
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user