import  TextInputWidgetIcon  from "@/assets/widgetCover/otp.svg";
import { RESIZE_DIRECTION, WidgetConfig } from "@/widgetLibrary/interface";

export const OTP_WIDGET_CONFIG: WidgetConfig = {
  type: "OTP_WIDGET",
  displayName: "otp",
  widgetName: "otp",
  icon: <TextInputWidgetIcon />,
  keywords: ["Input", "文本输入框"],
  sessionType: "INPUTS",
  resizeDirection: RESIZE_DIRECTION.HORIZONTAL,
  version: 0,
  defaults: {
    value: "",
    label: "OTP",

    length: 4,
    type: "number",
  },
};