diff --git a/lib/livebook_web/live/sidebar_helpers.ex b/lib/livebook_web/live/sidebar_helpers.ex
index a6680a9f1..c7180f979 100644
--- a/lib/livebook_web/live/sidebar_helpers.ex
+++ b/lib/livebook_web/live/sidebar_helpers.ex
@@ -47,6 +47,7 @@ defmodule LivebookWeb.SidebarHelpers do
to={Routes.settings_path(@socket, :page)}
current={@current_page}
/>
+ <.hub_section socket={@socket} />
<%= if Livebook.Config.shutdown_enabled?() do %>
@@ -101,6 +102,54 @@ defmodule LivebookWeb.SidebarHelpers do
"""
end
+ defp hub_section(assigns) do
+ ~H"""
+ <%= if Application.get_env(:livebook, :feature_flags)[:hub] do %>
+
+ <% end %>
+ """
+ end
+
+ defp hub_path(socket) do
+ if Application.get_env(:livebook, :feature_flags)[:hub] do
+ apply(Routes, :hub_path, [socket, :page])
+ end
+ end
+
defp sidebar_link_text_color(to, current) when to == current, do: "text-white"
defp sidebar_link_text_color(_to, _current), do: "text-gray-400"