local T=require(script.Parent.Eye)local g=script.Parent.ButtonPrefab local u=T.Component(function(u,a)local l,S=T.useState(0)return T.Use.Root(g,{AnchorPoint=u.AnchorPoint,Position=u.Position;Size=u.Size,["\064\065\099\116\105\118\097\116\101\100"]=function()S(l+1)end},{TextLabel=T.Use.Child({Text=tostring(l)})})end)return u
local Eye = require(script.Parent.Eye)

local ButtonPrefab = script.Parent.ButtonPrefab

local PrefabCounter = Eye.Component(function(Props, Children)
	local Count, SetCount = Eye.useState(0)

	return Eye.Use.Root(ButtonPrefab, {
		AnchorPoint = Props.AnchorPoint,
		Position = Props.Position,
		Size = Props.Size,

		["@Activated"] = function()
			SetCount(Count + 1)
		end,
	}, {
		TextLabel = Eye.Use.Child({
			Text = tostring(Count),
		}),
	})
end)

return PrefabCounter
