import React from "react"; import BaseControl, { ControlProps } from "./BaseControl"; import { ControlType } from "constants/PropertyControlConstants"; import FormLabel from "components/editorComponents/FormLabel"; import DynamicTextField from "components/editorComponents/form/fields/DynamicTextField"; import { AppState } from "reducers"; import { formValueSelector } from "redux-form"; import { QUERY_EDITOR_FORM_NAME } from "constants/forms"; import { connect } from "react-redux"; import { actionPathFromName } from "components/formControls/utils"; export function InputText(props: { label: string; placeholder?: string; isRequired?: boolean; name: string; actionName: string; }) { const { actionName, isRequired, label, name, placeholder } = props; const dataTreePath = actionPathFromName(actionName, name); return (