">
<%= render "layouts/shared/head" %>
<%= yield :head %>
<%= render_flash_notifications %>
<% if Current.family&.syncing? %>
<% render "shared/notifications/loading", id: "syncing-notice", message: "Syncing accounts data..." %>
<% end %>
<%= family_stream %>
<% if Rails.env.development? %>
<%= icon("eclipse", as_button: true, data: { action: "theme#toDark" }) %>
<%= icon("sun", as_button: true, data: { action: "theme#toLight" }) %>
<% end %>
<% if require_upgrade? %>
<%= render "shared/subscribe_modal" %>
<% end %>
<%= turbo_frame_tag "modal" %>
<%= turbo_frame_tag "drawer" %>
<%# Custom overrides for browser's confirm API %>
<%= render "layouts/shared/confirm_dialog" %>
<%= render "impersonation_sessions/super_admin_bar" if Current.true_user&.super_admin? && show_super_admin_bar? %>
<%= render "impersonation_sessions/approval_bar" if Current.true_user&.impersonated_support_sessions&.initiated&.any? %>
<%= yield %>