defmodule PlausibleWeb.Components.Layout do
@moduledoc false
use Phoenix.Component
def favicon(assigns) do
~H"""
"""
end
def theme_script(assigns) do
~H"""
"""
end
defp theme_preference(%{theme: theme}) when not is_nil(theme), do: theme
defp theme_preference(%{current_user: %Plausible.Auth.User{theme: theme}})
when not is_nil(theme) do
theme
end
defp theme_preference(_assigns), do: "system"
defdelegate logo_path(path), to: PlausibleWeb.LayoutView
end