Sha256: 9bfb95fdc1dc3658668ce245d4ae96a52947b83790a557a241c80dc2fc112478

Contents?: true

Size: 374 Bytes

Versions: 25

Compression:

Stored size: 374 Bytes

Contents

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
coveragebook_components-0.19.8 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.19.7 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.19.6 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.19.5 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.19.4 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.19.3 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.19.2 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.19.1 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.19.0 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.18.8 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.18.7 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.18.0 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.17.7 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.17.6 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.17.5 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.17.4 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.17.3 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.17.2 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.17.1 app/components/coco/buttons/menu_items/user_profile/user_profile.rb
coveragebook_components-0.17.0 app/components/coco/buttons/menu_items/user_profile/user_profile.rb