return function(I,p)local l=I.Component:extend("\069\114\114\111\114\066\111\117\110\100\097\114\121")l.displayName="\069\114\114\111\114\066\111\117\110\100\097\114\121"function l.componentDidCatch(l,I,p)local t=l.props.onError if t then t(I,p)end end function l.render(I)return I.props.children end return l end
return function(Roact, ReactRoblox)
	local ErrorBoundary = Roact.Component:extend("ErrorBoundary")

	ErrorBoundary.displayName = "ErrorBoundary"

	function ErrorBoundary:componentDidCatch(error, info)
		local onError = self.props.onError
		if onError then
			onError(error, info)
		end
	end

	function ErrorBoundary:render()
		return self.props.children
	end

	return ErrorBoundary
end
