Accordion buttons
Let's make this component a little bit more generic. It should accept a headerRightComponent
prop instead of buttons
. This way it can handle anything that might come up there in the future (and very likely be moved to a common lib). In our pages, instead of passing an array of Button
s, we should pass a single ButtonGroup
that contains these Button
s.