local h=require(script.Parent.Parent.Parent.Hooks)local C=require(script.Parent.Parent.Parent.Roact)local A=require(script.Parent.Parent.Parent.RoactFlipper)local t=require(script.Parent.Parent.Parent.Flipper)local function B(h,B)local E,n=A.useSpring(0,{},B)B.useEffect(function()n:setGoal(t.Spring.new(2.5,{frequency=2;dampingRatio=1}))end)return C.createElement("\073\109\097\103\101\076\097\098\101\108",{BackgroundTransparency=1,AutomaticSize=Enum.AutomaticSize.XY,Position=h.Position;Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\055\057\053\051\048\055\052\056\056\056",ZIndex=h.ZIndex,AnchorPoint=Vector2.new(.5,.5);SizeConstraint=Enum.SizeConstraint.RelativeXX;Size=E:map(function(h)return UDim2.fromScale(h,h)end),ImageTransparency=h.Transparency:map(function(h)return h end);ImageColor3=h.RippleColor},h[C.Children])end return(h.new(C))(B)
local Hooks = require(script.Parent.Parent.Parent.Hooks)
local Roact = require(script.Parent.Parent.Parent.Roact)
local RoactFlipper = require(script.Parent.Parent.Parent.RoactFlipper)
local Flipper = require(script.Parent.Parent.Parent.Flipper)

local function Ripple(props, hooks)
	local sizeBinding, sizeMotor = RoactFlipper.useSpring(0, {}, hooks)
	hooks.useEffect(function()
		sizeMotor:setGoal(Flipper.Spring.new(2.5, {
			frequency = 2,
			dampingRatio = 1,
		}))
	end)

	return Roact.createElement("ImageLabel", {
		BackgroundTransparency = 1,
		AutomaticSize = Enum.AutomaticSize.XY,
		Position = props.Position,
		Image = "rbxassetid://7953074888",
		ZIndex = props.ZIndex,
		AnchorPoint = Vector2.new(0.5, 0.5),
		SizeConstraint = Enum.SizeConstraint.RelativeXX,
		Size = sizeBinding:map(function(size)
			return UDim2.fromScale(size, size)
		end),
		ImageTransparency = props.Transparency:map(function(transparency)
			return transparency
		end),
		ImageColor3 = props.RippleColor,
	}, props[Roact.Children])
end

return Hooks.new(Roact)(Ripple)
