import { nanoid } from "nanoid";
// nội dung Menu

const MenuOptions = [
  {
    option: "rule",
    title: "Rules",
    list_option: [
      {
        key: "time-delay",
        label: "Time delay",
        id: nanoid(8),
        type: "default",
        icon: "./src/assets/images/icon-time.svg",
      },
      {
        key: "waitThenCheck",
        label: "Replied to conversation?",
        id: nanoid(8),
        type: "selectorNode",
        icon: "./src/assets/images/icon-if.svg",
        position: { x: 400, y: 290 },
      },
      {
        key: "wait",
        label: "Wait for trigger",
        id: nanoid(8),
        type: "default",
        icon: "./src/assets/images/icon-wait.svg",
      },
    ],
  },
  {
    option: "action",
    title: "Actions",
    list_option: [
      {
        key: "email",
        label: "Send email",
        id: nanoid(8),
        type: "default",
        icon: "./src/assets/images/icon-email.svg",
      },
      {
        key: "sms",
        label: "Send sms",
        id: nanoid(8),
        type: "default",
        icon: "./src/assets/images/icon-phone.svg",
      },
      {
        key: "slack",
        label: "Send Slack",
        id: nanoid(8),
        type: "default",
        icon: "./src/assets/images/icon-slack.svg",
      },
      {
        key: "zalo",
        label: "Send Zalo",
        id: nanoid(8),
        type: "default",
        icon: "./src/assets/images/icon-zalo.svg",
      },
      {
        key: "survey-email",
        label: "Send survey in email",
        id: nanoid(8),
        type: "default",
        icon: "./src/assets/images/icon-list.svg",
      },
      {
        key: "end",
        branchKey: "yes",
        label: "Contact Exits",
        id: nanoid(8),
        type: "output",
        icon: "./src/assets/images/icon-check.svg",
      },
      {
        key: "survey",
        branchKey: "no",
        label: "Send survey",
        id: nanoid(8),
        type: "output",
        icon: "./src/assets/images/icon-list.svg",
      },
    ],
  },
];

export { MenuOptions };
