How to implement LegendSeriesColorPicker in Grafana 7+ plugin development

Hello, I am redesigning a plugin for grafana v7 and am wondering, how to properly implement a ColorPicker for the series in the legend. Currently my code looks like this:

I already had a look at this component: but I am not sure how to properly use it.