import ColorPicker, { IColorPickerProps } from '../../colorpicker'; import { FormField, IFormFieldChildProps } from '../Field'; import { IFormComponentProps } from '../shared'; import { $MergeParams } from '../utils'; export type IFormColorPickerFieldProps = IFormComponentProps< string, Omit >; function renderColorPicker( childProps: IFormFieldChildProps, props: IFormColorPickerFieldProps ) { const { value, ...passedProps } = childProps; return ; } export const FormColorPickerField: React.FunctionComponent = props => { return ( ).defaultValue || '' } > {childProps => renderColorPicker(childProps, props)} ); };