defmodule MemexWeb.Components.NoteCard do @moduledoc """ Display card for an note """ use MemexWeb, :component def note_card(assigns) do ~H"""

<%= @note.name %>

<%= gettext("visibility: %{visibility}", visibility: @note.visibility) %>

<%= if @inner_block do %>
<%= render_slot(@inner_block) %>
<% end %>
""" end end