<% container_partial = @card.drafted? ? "cards/drafts/container" : "cards/container" %>
<%= turbo_stream.replace dom_id(@card, :card_container), partial: container_partial, method: :morph, locals: { card: @card.reload } %>

<%= turbo_stream.update dom_id(@card, :edit) do %>
  <%= render "cards/container/content_display", card: @card %>
<% end %>

<%= turbo_stream.replace dom_id(@card, :card_closure_toggle) do %>
  <%= render "cards/container/closure", card: @card %>
<% end %>
