Give it the action as onConfirm and the way back as onUndo. It asks, shows a spinner while the action runs, then says how it went, with Undo.
pnpm dlx shadcn@latest add "https://kinoui.com/r/confirm-button-1.json"