<.header>
  New article for <%= @author.name %>
</.header>

<.import_raw_html :if={@step == :import_raw_html} changeset={@changeset} />
<.review_raw_internaltree :if={@step == :review_raw_internaltree} raw_internal_tree={@raw_internal_tree} />
<.review_translation_units :if={@step == :review_translation_units} raw_internal_tree={@raw_internal_tree} menu_entries={@menu_entries} />
<.live_component
  :if={@step == :final_form}
  module={OutlookWeb.ArticleLive.FormComponent}
  id={:new}
  title="New Article"
  action={:new}
  article={@article}
  author={@author}
  internal_tree={@raw_internal_tree}
  navigate={~p"/authors/#{@author}"}
/>

<.back navigate={~p"/authors/#{@author}"}>Back to author</.back>
