local u=require(script.Parent.Parent.Roact)local q=require(script.Parent.StoreContext)local l=u.Component:extend("\083\116\111\114\101\080\114\111\118\105\100\101\114")function l.validateProps(u)if u.store==nil then return false,"\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 return true end function l.init(q,u)q.store=u.store end function l.render(l)return u.createElement(q.Provider,{value=l.store},u.oneChild(l.props[u.Children]))end return l
local Roact = require(script.Parent.Parent.Roact)

local StoreContext = require(script.Parent.StoreContext)

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

function StoreProvider.validateProps(props)
	if props.store == nil then
		return false, "Error initializing StoreProvider. Expected a `store` prop to be a Rodux store."
	end

	return true
end

function StoreProvider:init(props)
	self.store = props.store
end

function StoreProvider:render()
	return Roact.createElement(StoreContext.Provider, {
		value = self.store,
	}, Roact.oneChild(self.props[Roact.Children]))
end

return StoreProvider
