import React from 'react' ; import { PropName , PropValue , PropValueColorPicker } from './widgets' ; export const ColorValue = ( props ) => { const { label , value , defaultValue , onValueChange } = props ; return < > { label ? < PropName > { label } < /PropName> : null} < PropValue > < PropValueColorPicker defaultValue = { defaultValue } value = { value } onValueChange = { onValueChange } / > < /PropValue> < />; } ;