local function m(m)return function(C)if C.configuration then warn("\067\104\105\108\100 \099\111\109\112\111\110\101\110\116 \104\097\115 \097 \112\114\111\112 \110\097\109\101\100 \096\099\111\110\102\105\103\117\114\097\116\105\111\110\096 \097\110\100 \119\105\108\108 \098\101 \111\118\101\114\114\105\100\101\110 \098\121 \067\111\110\102\105\103\117\114\097\116\105\111\110\067\111\110\116\101\120\116\046")end return Roact.createElement(context.Consumer,{render=function(r)local v=Cryo.Dictionary.join({configuration=r},C)return Roact.createElement(m,v)end})end end return{ConfigurationProvider=ConfigurationProvider,withConfiguration=m}

local function withConfiguration(component)
	return function(props)
		if props.configuration then
			warn("Child component has a prop named `configuration` and will be overriden by ConfigurationContext.")
		end

		return Roact.createElement(context.Consumer, {
			render = function(configuration)
				local mergedProps = Cryo.Dictionary.join({ configuration = configuration }, props)

				return Roact.createElement(component, mergedProps)
			end,
		})
	end
end

return {
	ConfigurationProvider = ConfigurationProvider,
	withConfiguration = withConfiguration,
}
