Retrieve current refinements in AisInfiniteHits

Hello,

I need to access to the current refinements within AisInfiniteHits items in order to apply conditional CSS classes on each result item depending on the selected refinements.

Do you have an idea of what I can use to achieve that?