local C=script.Parent.Parent.Parent.Parent local c=require(C.Cryo)return function(C,n)local S=function(S)local U if not S.Active then U=Color3.new(.286274,.286274,.286274)end return C.createElement("\084\101\120\116\066\117\116\116\111\110",c.Dictionary.join(S,{BackgroundColor3=U;[n.Event.Activated]=S.onPress}))end return S end
local rootWorkspace = script.Parent.Parent.Parent.Parent

local Cryo = require(rootWorkspace.Cryo)

return function(Roact, ReactRoblox)
	local Button = function(props)
		local color
		if not props.Active then
			color = Color3.new(0.286274, 0.286274, 0.286274)
		end

		return Roact.createElement(
			"TextButton",
			Cryo.Dictionary.join(props, {
				BackgroundColor3 = color,
				[ReactRoblox.Event.Activated] = props.onPress,
			})
		)
	end

	return Button
end
