defmodule Paleta.Components.PageHeader do use Phoenix.Component use Phoenix.HTML alias Paleta.Components.Breadcrumb attr(:breadcrumb, :list, required: true) attr(:title, :string, required: true) attr(:search_title, :string) attr(:show_search, :boolean, default: true) attr(:show_actions, :boolean, default: true) attr(:show_title, :boolean, default: true) slot :action, doc: "Add action" do attr(:label, :string, required: true) attr(:path, :string, required: true) attr(:icon, :string, required: true) end def eq_page_hader(assigns) do ~H"""