.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 %>