local D=script.Parent local E=D.Parent local s=E.Parent local d=require(s.Roact)local V=require(D.StyleConsumer)return function(D)assert(type(D)=="\102\117\110\099\116\105\111\110","\069\120\112\101\099\116 \114\101\110\100\101\114\067\097\108\108\098\097\099\107 \116\111 \098\101 \097 \102\117\110\099\116\105\111\110\046")return d.createElement(V,{render=function(E)return D(E.style)end})end
local Theme = script.Parent
local Winro = Theme.Parent
local Packages = Winro.Parent

local Roact = require(Packages.Roact)
local StyleConsumer = require(Theme.StyleConsumer)

-- Since our style consumer object receives the whole update-able container,
-- we need to send only the contained style value through to the
-- renderCallback provided
return function(renderCallback)
	assert(type(renderCallback) == "function", "Expect renderCallback to be a function.")
	return Roact.createElement(StyleConsumer, {
		render = function(styleContainer)
			return renderCallback(styleContainer.style)
		end,
	})
end
