defmodule PlausibleWeb.Components.Layout do @moduledoc false use Phoenix.Component 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" end