There are conflicting reports that Iran has left the JCPOA nuclear deal. If they haven’t yet, it’s just a matter of time.
From Iran’s point of view this is the only rational move to make at this point. Trump would not be fucking with them like this if they had nuclear weapons, and they know it.