defmodule AshHqWeb.Components.Docs.Functions do @moduledoc "Lists all of the provided functions" use Surface.Component alias AshHqWeb.Components.Docs.SourceLink prop(type, :atom, required: true) prop(functions, :list, required: true) prop(header, :string, required: true) prop(library, :any, required: true) prop(library_version, :any, required: true) prop(libraries, :list, required: true) def render(assigns) do ~F""" {#case Enum.filter(@functions, &(&1.type == @type))} {#match []} {#match functions}