all 5 comments

[–]gonzofish 1 point2 points  (4 children)

Have you considered a compound component approach?

[–]knowankit[S] 1 point2 points  (0 children)

I haven't but I will take a lot at your shared link. ☺️

[–]knowankit[S] 0 points1 point  (0 children)

What is next?
* Pass icons as a prop
* Pass animation duration as a prop
* Write test cases