hunk.code_window: import { FieldArray, WrappedFieldArrayProps } from "redux-form";
   import styled from "styled-components";
   import { Icon } from "@blueprintjs/core";
   import { FormIcons } from "icons/FormIcons";
   import BaseControl, { ControlProps, ControlData } from "./BaseControl";
   import TextField from "components/editorComponents/form/fields/TextField";
   import { ControlType } from "constants/PropertyControlConstants";
   import DynamicTextField from "components/editorComponents/form/fields/DynamicTextField";
   import FormLabel from "components/editorComponents/FormLabel";
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit: import BaseControl, { ControlProps } from "./BaseControl";
  
hunk.file_path: app/client/src/components/formControls/KeyValueArrayControl.tsx
hunk.type: replace
file: import Api from "./Api";
  import { WidgetType } from "constants/WidgetConstants";
  import { WidgetProps } from "widgets/BaseWidget";
  import { WidgetConfigProps } from "reducers/entityReducers/widgetConfigReducer";
  import { AxiosPromise } from "axios";
  
  export interface WidgetConfigsResponse {
    config: Record<WidgetType, Partial<WidgetProps> & WidgetConfigProps>;
  }
  
  class WidgetConfigsApi extends Api {
    static url = "/widgetConfigs";
    static fetchWidgetConfigs(): AxiosPromise<WidgetConfigsResponse> {
      return Api.get(WidgetConfigsApi.url);
    }
  }
  
  export default WidgetConfigsApi;
  