local function Z(Z)local I=Z._context.ClientApi if I==nil then error("\070\097\105\108\101\100 \116\111 \102\105\110\100 \067\108\105\101\110\116\065\112\105 \105\110 \099\111\109\112\111\110\101\110\116\'\115 \099\111\110\116\101\120\116\033",2)end return I end return Z
--[[
	This is a little utility to pull a ClientApi instance out of Roact's context
	and hand it to a component.

	Check out Components/ApiProvider for an introduction into context and why we
	use this strategy.
]] local function getApiFromComponent(componentInstance)
    local api = componentInstance._context.ClientApi

    if api == nil then
        error("Failed to find ClientApi in component's context!", 2)
    end

    return api
end

return getApiFromComponent
