module Coco module MenuItems class UserProfile < Coco::Component component_name :user_profile_menu_item renders_one :avatar, ->(**kwargs) do Coco::Avatar.new(name: name, **kwargs, size: :lg) end attr_reader :name, :email def initialize(name:, email:, **) @name = name @email = email end end end end