return function()local U=(game:GetService("\080\108\097\121\101\114\115")).LocalPlayer.PlayerGui local k=require(game.ReplicatedStorage.Roact)local z=k.Component:extend("\083\101\097\114\099\104\066\097\114")function z.init(U)U.textBoxRef=k.createRef()end function z.render(U)return k.createElement("\070\114\097\109\101",{Size=UDim2.new(0,300,0,50),Position=UDim2.new(.5,0,.5,0),AnchorPoint=Vector2.new(.5,.5)},{SearchIcon=k.createElement("\084\101\120\116\066\117\116\116\111\110",{Size=UDim2.new(0,50,0,50),AutoButtonColor=false,Text="\061\062";[k.Event.Activated]=function()print("\066\117\116\116\111\110 \099\108\105\099\107\101\100\059 \104\097\118\101 \116\104\101 \084\101\120\116\066\111\120 \099\097\112\116\117\114\101 \102\111\099\117\115");(U.textBoxRef:getValue()):CaptureFocus()end});SearchTextBox=k.createElement("\084\101\120\116\066\111\120",{Size=UDim2.new(1,-50,1,0),Position=UDim2.new(0,50,0,0);[k.Ref]=U.textBoxRef})})end local d=k.createElement("\083\099\114\101\101\110\071\117\105",nil,{SearchBar=k.createElement(z)})local m=k.mount(d,U)local function a()k.unmount(m)end return a end
return function()
	local PlayerGui = game:GetService("Players").LocalPlayer.PlayerGui

	local Roact = require(game.ReplicatedStorage.Roact)

	--[[
		A search bar with an icon and a text box
		When the icon is clicked, the TextBox captures focus
	]]
	local SearchBar = Roact.Component:extend("SearchBar")

	function SearchBar:init()
		self.textBoxRef = Roact.createRef()
	end

	function SearchBar:render()
		return Roact.createElement("Frame", {
			Size = UDim2.new(0, 300, 0, 50),
			Position = UDim2.new(0.5, 0, 0.5, 0),
			AnchorPoint = Vector2.new(0.5, 0.5),
		}, {
			SearchIcon = Roact.createElement("TextButton", {
				Size = UDim2.new(0, 50, 0, 50),
				AutoButtonColor = false,
				Text = "=>",

				-- Handle click events on the search button
				[Roact.Event.Activated] = function()
					print("Button clicked; have the TextBox capture focus")
					self.textBoxRef:getValue():CaptureFocus()
				end,
			}),

			SearchTextBox = Roact.createElement("TextBox", {
				Size = UDim2.new(1, -50, 1, 0),
				Position = UDim2.new(0, 50, 0, 0),

				-- Use Roact.Ref to get a reference to the underlying object
				[Roact.Ref] = self.textBoxRef,
			}),
		})
	end

	local app = Roact.createElement("ScreenGui", nil, {
		SearchBar = Roact.createElement(SearchBar),
	})

	local handle = Roact.mount(app, PlayerGui)

	local function stop()
		Roact.unmount(handle)
	end

	return stop
end
