module BBS::Dialogs

Ready-made modal dialogs for a BBS::Application: a message, a yes/no confirmation, and a one-line input. Each opens a centred Window on app and returns it; the buttons close it.

BBS::Dialogs.confirm(app, 'Delete this post?', on_yes: -> { delete(post) })