import { Dropdown } from "@wix/wix-ui-icons-common";
import { Node_Type } from "./../ricos-types/index.js";
import { INSERT_PLUGIN_BUTTONS, TOOLBARS } from "./../editor-common/index.js";
import { INSERT_COLLAPSIBLE_LIST_BUTTON } from "./data-hooks.js";
import { defaultCollapsibleList } from "./tiptap/defaults.js";
import { COLLAPSIBLE_LIST_TYPE } from "./types.js";
const toolbarsToAddIn = [
  TOOLBARS.FOOTER,
  TOOLBARS.SIDE,
  TOOLBARS.MOBILE
];
const getAddButtons = () => {
  return [
    {
      id: Node_Type.COLLAPSIBLE_LIST,
      icon: Dropdown,
      label: INSERT_PLUGIN_BUTTONS.COLLAPSIBLE_LIST,
      dataHook: INSERT_COLLAPSIBLE_LIST_BUTTON,
      tooltip: "CollapsibleListPlugin_InsertButton_Tooltip",
      toolbars: toolbarsToAddIn,
      command: ({ publicCommands }) => {
        publicCommands.insertBlockWithBlankLines(COLLAPSIBLE_LIST_TYPE, defaultCollapsibleList, {
          updateSelection: "text"
        });
        return true;
      },
      menuConfig: {
        tags: "CollapsibleList_plugin_search_tags",
        group: "advanced"
      }
    }
  ];
};
export {
  getAddButtons,
  toolbarsToAddIn
};
//# sourceMappingURL=get-add-buttons.js.map
