import React from 'react'; import { FormItemContext, FormItemContextValue } from './context'; export interface FieldProps { name?: string; fieldContext: FormItemContextValue; } function toBeField(Component: React.ComponentType) { const FormField: React.FC> = function( props: Omit ) { return ( {value => } ); }; return FormField; } export default toBeField;