Obama’s deal allowed the restrictions on centrifuges and uranium enrichment to be sunsetted. The whole concept was to allow the Iranians, an oil rich country, to build reactors for electricity generation.
Obama’s deal allowed the Iranians to be able to readily produce nukes years after he was gone. Iran should NEVER be allowed to have nukes, not now, not in the future.
Trump walking away kept the sanctions on Iran.