+ """
+ end
+
+
+ def render_field(record, field, _session) do
+ IO.inspect(field)
+ record
+ |> Map.fetch!(field)
+ |> case do
+ bool when is_boolean(bool) ->
+ if bool, do: "Yes", else: "No"
+ date = %Date{} ->
+ Calendar.strftime(date, "%a, %B %d %Y")
+ bin when is_binary(bin) -> bin
+ _ ->
+ record
+ |> Map.fetch!(field)
+ |> case do
+ val when is_binary(val) -> val
+ val -> inspect(val, pretty: true)
+ end
+ end
+ end
+
+end
diff --git a/lib/vyasa_web/components/audio_player.ex b/lib/vyasa_web/components/audio_player.ex
new file mode 100644
index 00000000..05418e65
--- /dev/null
+++ b/lib/vyasa_web/components/audio_player.ex
@@ -0,0 +1,38 @@
+defmodule VyasaWeb.AudioPlayer do
+ use VyasaWeb, :live_component
+
+ def mount(_, _, socket) do
+ socket
+ |> assign(playback: nil)
+ end
+
+ @impl true
+ def render(assigns) do
+ ~H"""
+