cannery/lib/cannery_web/live/component/topbar.ex

15 lines
310 B
Elixir

defmodule CanneryWeb.Live.Component.Topbar do
use CanneryWeb, :live_component
alias Cannery.{Accounts}
alias CanneryWeb.{HomeLive}
def mount(socket) do
{:ok, socket |> assign(results: [], title_content: nil)}
end
def update(assigns, socket) do
{:ok, socket |> assign(assigns)}
end
end