This commit is contained in:
lx
2026-07-06 14:01:11 -04:00
commit c4f97d729d
16468 changed files with 935321 additions and 0 deletions
@@ -0,0 +1,19 @@
--[[
LayoutValuesConsumer will extract the LayoutValues object
from context and pass it into the given render callback
]]
local CorePackages = game:GetService("CorePackages")
local Roact = require(CorePackages.Roact)
local LayoutValuesKey = require(script.Parent.Parent.Parent.LayoutValuesKey)
local LayoutValuesConsumer = Roact.Component:extend("LayoutValuesConsumer")
function LayoutValuesConsumer:render()
local service = self._context[LayoutValuesKey]
return self.props.render(service)
end
return LayoutValuesConsumer