import { ReactComponent as TextWidgetIcon } from "@/assets/widgetCover/text.svg";
import { WidgetConfig, RESIZE_DIRECTION } from "@/widgetLibrary/interface";

export const TEXT_AREA_WIDGET_CONFIG: WidgetConfig = {
  type: "TEXT_AREA_WIDGET",
  displayName: "TextArea",
  widgetName: "TextArea",
  icon: <TextWidgetIcon />,
  keywords: ["TextArea", "文本输入框"],
  sessionType: "INPUTS",
  w: 6,
  h: 5,
  resizeDirection: RESIZE_DIRECTION.ALL,
  version: 0,
  defaults: {
    label: "Label",
    value: "",
    defaultValue: "",
    helperText: "",
    placeholder: "",
    error: false,
    minRows: 4,
    maxRows: 10,
    required: false,
    validateMessage: "",
    styles: {},
  },
};
