The Iran deal was NEVER binding and leaving it does NOT damage our credibility.
For any agreement to have the force of law it must be ratified by the U.S. Senate. Barack Obama was not a king and had no authority to make that deal with Iran without the consent of the Senate. This is basic constitutional law.
Basically, Donald Trump did not take us out of the Iran deal because there was NEVER a deal in the first place!