import textFieldPlugin from "./../text" ; import { FbBuilderFieldPlugin } from "../../../../../types" ; const plugin = { type : "form-editor-field-type" , name : "form-editor-field-type-company-name" , field : { ... textFieldPlugin . field , unique : true , group : "form-editor-field-group-contact" , name : "companyName" , label : "Company name" , createField ( props ) { return { ... textFieldPlugin . field . createField ( props ) , name : this . name , fieldId : "companyName" , label : "Company name" } ; } } } ; export default plugin ;