# frozen_string_literal: true
module Widgets
class Peers
def initialize(x, y, width, height)
@search = Widgets::Search.new x, y, width, 1
@list = Widgets::List.new x, y + 1, width, height - 1
end
def render
@search.render
@list.render
def putc(event)
@search.putc event
def left
@search.left
def right
@search.right
def home
@search.home
def endk
@search.endk
def backspace
@search.backspace
def delete
@search.delete
def up
@list.up
def down
@list.down