refactor: extract alert method to a standalone function
refactor: extract alert method to a standalone function

standardnotes/web,standardnotes/web,standardnotes/web,standardnotes/web,standardnotes/web