local function k(k)if config.typeChecks then assert(typeof(k)=="\102\117\110\099\116\105\111\110","\069\120\112\101\099\116\101\100 \097\114\103 \035\049 \116\111 \098\101 \097 \102\117\110\099\116\105\111\110")end return function(a)local P=a[Ref]local z=assign({},a,excludeRef)return k(z,P)end end return k

local function forwardRef(render)
	if config.typeChecks then
		assert(typeof(render) == "function", "Expected arg #1 to be a function")
	end

	return function(props)
		local ref = props[Ref]
		local propsWithoutRef = assign({}, props, excludeRef)

		return render(propsWithoutRef, ref)
	end
end

return forwardRef
