Building a Dynamic Confirmation Modal to Run Any API Or Query