local O=require(script.Parent.Parent.Roact)local H=require(script.Parent.storeKey)local p=O.Component:extend("\083\116\111\114\101\080\114\111\118\105\100\101\114")function p.init(p,O)local g=O.store if g==nil then error("\069\114\114\111\114 \105\110\105\116\105\097\108\105\122\105\110\103 \083\116\111\114\101\080\114\111\118\105\100\101\114\046 \069\120\112\101\099\116\101\100 \097 \096\115\116\111\114\101\096 \112\114\111\112 \116\111 \098\101 \097 \082\111\100\117\120 \115\116\111\114\101\046")end p._context[H]=g end function p.render(H)return O.oneChild(H.props[O.Children])end return p
local Roact = require(script.Parent.Parent.Roact)

local storeKey = require(script.Parent.storeKey)

local StoreProvider = Roact.Component:extend("StoreProvider")

function StoreProvider:init(props)
	local store = props.store

	if store == nil then
		error("Error initializing StoreProvider. Expected a `store` prop to be a Rodux store.")
	end

	self._context[storeKey] = store
end

function StoreProvider:render()
	return Roact.oneChild(self.props[Roact.Children])
end

return StoreProvider