---------------------------------------------------------------------



local RoundTitle = {}
RoundTitle.__index = RoundTitle


function RoundTitle.new( holder: TextLabel ): ( {} )
    local self = setmetatable( {}, RoundTitle )
    self._janitor = Janitor.new()

    local function OnModeChanged(): ()
        holder.Text = workspace:GetAttribute("Mode")
    end

    workspace:GetAttributeChangedSignal("Mode"):Connect( OnModeChanged )
    OnModeChanged()
    return self
end


function RoundTitle:Destroy(): ()
    self._janitor:Destroy()
end


return RoundTitle
