Factored out confirmation dialog code into a separate reusable component