sharepoint online – Minimize and open iframe using react js in SPFX

I have a iframe control imported from ‘react-iframe’.We are showing a chatbot(PowerVirtualAgent) inside an iframe

.

I want to have a minimize button and open button functionalities over the iframe control.I could not find any properties for these functionalitites in iframe control.

Could anyone help ASAP. Below is the snapshot of iframe.

enter image description here