import React from "react" ; import { Form } from "antd" ; import { TConfigs } from "../interface" ; import { Leggo } from "../utils/Leggo" ; export default function StandardFormItem ( props ) { const { StandardInput , configs } = props ; const { itemProps , inputProps , extra } = configs ; return ( < Form . Item { ... itemProps } rules = { Leggo . createRules ( itemProps . rules , extra ?. wordsLimit ) } > < StandardInput { ... inputProps } > { Leggo . createChildren ( extra ?. childrenNode ) } < /StandardInput> < /Form.Item>); }