import * as React from 'react'; import { withFormHandler } from './withFormHandler'; import type { InputFormOptions, FormProps } from './types'; export function withForm( Component: React.ComponentType>, options: InputFormOptions, ): React.FC { const WrappedComponent = withFormHandler( (props) => (
), options, ); WrappedComponent.displayName = `withForm(${Component.displayName ?? 'Component'})`; return WrappedComponent; }