diff --git a/editor/components/panel-color-settings/index.js b/editor/components/panel-color-settings/index.js index 26895c497f389f..70b2a9901f99ba 100644 --- a/editor/components/panel-color-settings/index.js +++ b/editor/components/panel-color-settings/index.js @@ -40,6 +40,9 @@ const renderColorIndicators = ( colorSettings, colors ) => { } ); }; +// colorSettings is passed as an array of props so that it can be used for +// mapping both ColorIndicator and ColorPaletteControl components. Passing +// an array of components/nodes here wouldn't be feasible. export function PanelColorSettings( { title, colorSettings, colors, children, ...props } ) { const className = 'editor-panel-color-settings';