import React, { ReactNode } from 'react'; import { Rule } from 'antd/es/form'; export interface WithFormItemProps { label?: string; name?: string; extra?: ReactNode; required?: boolean; rules?: Rule[]; initialValue?: string; [prop: string]: any; } export default function withFormItem(WrappedComponent: React.ComponentType): (props: WithFormItemProps) => React.JSX.Element;