# ============================================================================ # COMMENTED OUT: Component-based rendering system - CTA Component # ============================================================================ # This module was part of an experimental component-based page building system # using XML-style markup (.phk files) with swappable design variants. # Related to: lib/phoenix_kit/publishing/page_builder.ex # ============================================================================ # defmodule PhoenixKitWeb.Components.Publishing.CTA do # @moduledoc """ # Call-to-action button component. # """ # use Phoenix.Component # # attr :content, :string, required: true # attr :attributes, :map, default: %{} # attr :variant, :string, default: "default" # # def render(assigns) do # is_primary = Map.get(assigns.attributes, "primary", "false") == "true" # action = Map.get(assigns.attributes, "action", "#") # # assigns = # assigns # |> assign(:is_primary, is_primary) # |> assign(:action, action) # # ~H""" # # {@content} # # """ # end # end