Lost Charging Cable

I lost the cord for my XR charger. I still have the block. (See pics). I also have my Pint charger and I’ve been using the cord to the wall for both blocks. Question is, does the cable from the block to the outlet matter or can I get any generic off amazon? The one for the pint works, but I do t know if it’ll eventually cause damage to the charger. Thank you!