add gs
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
local Modules = game:GetService("CoreGui").RobloxGui.Modules
|
||||
|
||||
local ShowToast = require(Modules.LuaChat.Actions.ShowToast)
|
||||
local ToastComplete = require(Modules.LuaChat.Actions.ToastComplete)
|
||||
|
||||
return function(state, action)
|
||||
state = state or nil
|
||||
|
||||
if action.type == ShowToast.name then
|
||||
state = action.toast
|
||||
elseif action.type == ToastComplete.name then
|
||||
state = nil
|
||||
end
|
||||
|
||||
return state
|
||||
end
|
||||
Reference in New Issue
Block a user