import cn from 'classnames'; import { IFormComponentProps, IFormFieldChildProps } from '../shared'; import { FormField } from '../Field'; import { ISingleUploadProps, IUploadFileItem, SingleUpload, } from '../../upload'; export type IFormSingleUploadFieldProps = IFormComponentProps>; function renderSingleUpload( childProps: IFormFieldChildProps, props: IFormSingleUploadFieldProps ) { const { value, onChange } = childProps; return ( ); } export function FormSingleUploadField( props: IFormSingleUploadFieldProps ) { const { className, ...rest } = props; return ( {childProps => renderSingleUpload(childProps, props)} ); }