defmodule MedicodeWeb.Components do @moduledoc """ Functional UI components for the main transcription and coding view. """ use Phoenix.Component use MedicodeWeb, :verified_routes import MedicodeWeb.CoreComponents attr(:audio_upload, Phoenix.LiveView.UploadConfig, required: true) @doc """ Displays a form containing a button for listening to live audio and a file upload for recorded audio files. """ def upload_form(assigns) do ~H"""
""" end attr(:visible, :boolean, required: true) @doc """ A loading icon and message displayed while the audio is being processed. """ def loading_message(assigns) do ~H""" <%= if @visible do %>Transcribing and tagging audio file...
<%= @transcription.filename %>
Summary Keywords
Finalized Codes
<%= @code %>
<%= @label %>