.header>
Daniel's Wishlist
<:actions>
<.button phx-click={
JS.push("toggle_view_state")
|> JS.dispatch("toggle_view_state", detail: %{"grid" => !@grid})
}>
<%= if @grid do %>
List View
<% else %>
Grid View
<% end %>
<:actions :if={!@current_user}>
<.button phx-click={JS.push("toggle_hidden_items")}>
<%= if @hidden do %>
Hide
<% else %>
Show
<% end %>
Received
<%= if @grid do %>

<%= if item.received && !@current_user do %>
<.icon name="hero-check-circle" />Received
<% end %>
<%= item.title %>
<.icon name="hero-ellipsis-vertical" class="w-full h-full" />
<.dropdown item={item} />
Priority:
<%= for _ <- 1..item.desire do %>
<.icon name="hero-star" class="bg-red-500 text-red-500" />
<% end %>
<%= item.description %>
<% else %>

<%= if item.received && !@current_user do %>
<.icon name="hero-check-circle" />Received
<% end %>
<%= item.title %>
<.icon
name="hero-ellipsis-vertical"
class="w-7 h-7 rounded-full hover:bg-purple-400 active:bg-purple-500"
/>
<.dropdown item={item} />
<%= item.description %>
Priority:
<%= for _ <- 1..item.desire do %>
<.icon name="hero-star" class="bg-red-500 text-red-500" />
<% end %>
<% end %>