# frozen_string_literal: true
module Widgets
class Container < Curses::React::Component
def subwin(x, y, width, height)
window.subwin height, width, y, x
end
private
def draw
children.each(&:render)
def focus
raise NotImplementedError, "#{self.class}#focus"
def children
raise NotImplementedError, "#{self.class}#children"