diff --git a/app/components/avo/panel_component.html.erb b/app/components/avo/panel_component.html.erb
index cb97b26a4d..63da39b304 100644
--- a/app/components/avo/panel_component.html.erb
+++ b/app/components/avo/panel_component.html.erb
@@ -1,34 +1,21 @@
<%= content_tag :div, class: classes, data: data_attributes do %>
<%= render Avo::CoverPhotoComponent.new cover_photo: @cover_photo %>
-
- <% if render_header? %>
-
-
- <%= render Avo::ProfilePhotoComponent.new profile_photo: @profile_photo %>
-
- <%= render partial: "avo/partials/panel_breadcrumbs" if display_breadcrumbs? %>
-
-
- <% if name_slot? %>
- <%= name_slot %>
- <% else %>
- <%= render Avo::PanelNameComponent.new name: @name %>
- <% end %>
- <% if description.present? %>
-
- <%== description %>
-
- <% end %>
-
- <% if tools.present? %>
-
- <%= tools %>
-
- <% end %>
-
-
-
-
+ <%= render Avo::PanelHeaderComponent.new(
+ name: @name,
+ description: @description,
+ display_breadcrumbs: @display_breadcrumbs,
+ profile_photo: @profile_photo
+ ) do |header| %>
+ <% if name_slot.present? %>
+ <% header.with_name_slot do %>
+ <%= name_slot %>
+ <% end %>
+ <% end %>
+ <% if tools.present? %>
+ <% header.with_tools do %>
+ <%= tools %>
+ <% end %>
+ <% end %>
<% end %>
<% if body? %>