defmodule PlausibleWeb.Components.Generic do @moduledoc """ Generic reusable components """ use Phoenix.Component attr :title, :string, default: "Notice" slot :inner_block def notice(assigns) do ~H"""

<%= @title %>

<%= render_slot(@inner_block) %>

""" end end