-- Compiled with roblox-ts v1.3.2 local TS = _G[script] local Hooks = TS.import(script, TS.getModule(script, "@rbxts", "roact-hooks").src) local RoactRoduxContext = TS.import(script, script.Parent, "context").RoactRoduxContext local Roact = TS.import(script, TS.getModule(script, "@rbxts", "roact").src) local Component = function(_param, hooks) local store = _param.store local children = _param[Roact.Children] local contextValue = hooks.useMemo(function() return { store = store, } end, { store }) local _attributes = { value = contextValue, } local _children = {} local _length = #_children if children then for _k, _v in pairs(children) do if type(_k) == "number" then _children[_length + _k] = _v else _children[_k] = _v end end end return Roact.createElement(RoactRoduxContext.Provider, _attributes, _children) end --[[ * * Makes the Rodux store available to the `useStore()` calls in the component hierarchy below. ]] local Provider = Hooks.new(Roact)(Component, { componentType = "PureComponent", name = "Provider", }) local default = Provider return { Provider = Provider, default = default, }