Hand a promise to the hook and a single toast shows a spinner, then turns into a success or error message in the same spot once it settles, and only then starts counting down to close.
pnpm dlx shadcn@latest add "https://karaui.kamisama-v0.my.id/r/toast-promise.json"