defmodule LivebookWeb.HomeLive.CloseSessionComponent do use LivebookWeb, :live_component import LivebookWeb.HomeLive.SessionListComponent, only: [toggle_edit: 1] @impl true def render(assigns) do ~H"""
Are you sure you want to close this section -
“<%= @session.notebook_name %>”?
<%= if @session.file,
do: "This won't delete any persisted files.",
else: "The notebook is not persisted and content may be lost." %>