# frozen_string_literal: true
module Widgets
class Sidebar < Container
def initialize(_parent)
super
@logo = Logo.new self
@menu = Menu.new self
end
def props=(_value)
@logo.props = props[:logo]
@menu.props = props[:menu]
private
def focus
case props[:focus]
when :menu
@menu
def children
[@logo, @menu]