defmodule LivebookWeb.SessionLive.InsertButtonsComponent do use LivebookWeb, :live_component def render(assigns) do ~H"""
#{text}
"
defp insert_smart_cell(js \\ %JS{}, definition, section_id, cell_id) do
JS.push(js, "insert_cell_below",
value: %{
type: "smart",
kind: definition.kind,
section_id: section_id,
cell_id: cell_id
}
)
end
end