module Avo::TurboStreamActionsHelper
def avo_close_modal
def avo_close_modal turbo_stream_action_tag :replace, target: Avo::MODAL_FRAME_ID, template: @view_context.turbo_frame_tag(Avo::MODAL_FRAME_ID) end
def avo_download(content:, filename:)
def avo_download(content:, filename:) turbo_stream_action_tag :download, content: content, filename: filename end
def avo_flash_alerts
def avo_flash_alerts turbo_stream_action_tag :append, target: "alerts", template: @view_context.render(Avo::FlashAlertsComponent.new(flashes: @view_context.flash.discard)) end