<%= live_patch to: Routes.home_path(@socket, :import, "url"),
class: "tab #{if(@tab == "url", do: "active")}" do %>
<.remix_icon icon="download-cloud-2-line" class="align-middle" />
From URL
<% end %>
<%= live_patch to: Routes.home_path(@socket, :import, "content"),
class: "tab #{if(@tab == "content", do: "active")}" do %>
<.remix_icon icon="clipboard-line" class="align-middle" />
From clipboard
<% end %>
<%= live_patch to: Routes.home_path(@socket, :import, "file_upload"),
class: "tab #{if(@tab == "file_upload", do: "active")}" do %>
<.remix_icon icon="file-upload-line" class="align-middle" />
File upload
<% end %>
<.live_component module={component_for_tab(@tab)} id={"import-#{@tab}"} {@import_opts} />