import  TextWidgetIcon  from "@/assets/widgetCover/text.svg";
import { WidgetConfig, RESIZE_DIRECTION } from "@/widgetLibrary/interface";
export const TEXT_AREA_NATIVE_WIDGET_CONFIG: WidgetConfig = {
  type: "TEXT_AREA_NATIVE_WIDGET",
  displayName: "NativeTextArea",
  widgetName: "NativeTextArea",
  icon: <TextWidgetIcon />,
  keywords: ["TextArea", "文本输入框"],
  sessionType: "INPUTS",
  resizeDirection: RESIZE_DIRECTION.ALL,
  version: 0,
  defaults: {
    label: "Label",
    value: "",
    defaultValue: "",
    helperText: "",
    placeholder: "",
    error: false,
    minRows: 4,
    maxRows: 10,
    required: false,
    validateMessage: "",
    styles: {},
  },
};
