title: passing a set of attribute to a component incase it is selected else passing another set of props if not selected
body: <pre><code>                 {this.state &amp;&amp; this.state.conditionAgreed ? (
                          &lt;Icons icon="roundCheckCircle1" fill="#436ab2" /&gt;
                        ) : (
                          &lt;Icons height="26px" width="26px" icon="circle" /&gt;
                        )}
  </code></pre>
  
  <p>I want to pass  the set of  props of (fill, icon) or (height,width,icon) depending on the situation but in one go to my Icon component .What's the way to achieve that in react?</p>