I want to change the icon based on whether the accordion is expanded or not.
I see that on the material ui page that the CSS have .Mui-expanded which can see whether expanded={true} or false, but how can I use this to set a different icon when expanded is true or false.
So I want to set IconA if expand is true and IconB if expand is false.
expandIcon={<IconA/>}