import { LayoutTwoColumns } from "@wix/wix-ui-icons-common";
import { Node_Type } from "./../ricos-types/index.js";
import { TOOLBARS } from "./../editor-common/index.js";
import { DATA_HOOKS } from "./data-hooks.js";
import { SMART_BLOCK_VARIANT_PICKER_MODAL_ID, VariantPicker } from "./modals/variant-picker.js";
const smartBlockAddToolbars = [
  TOOLBARS.MOBILE,
  TOOLBARS.FOOTER,
  TOOLBARS.SIDE
];
const getAddButtons = (_config, services) => {
  const {
    modals,
    context: { isMobile }
  } = services;
  return [
    {
      id: Node_Type.SMART_BLOCK,
      label: "SmartBlock_InsertButton_Label",
      dataHook: DATA_HOOKS.INSERT_BUTTON,
      icon: LayoutTwoColumns,
      tooltip: "SmartBlock_InsertButton_Tooltip",
      toolbars: smartBlockAddToolbars,
      command: ({ referenceElement }) => {
        modals.togglePluginPanel({
          id: SMART_BLOCK_VARIANT_PICKER_MODAL_ID,
          Component: VariantPicker,
          componentProps: {},
          isMobile,
          positioning: {
            referenceElement,
            placement: "bottom"
          }
        });
        return true;
      },
      menuConfig: {
        tags: "SmartBlock_plugin_search_tags"
      }
    }
  ];
};
export {
  getAddButtons,
  smartBlockAddToolbars
};
//# sourceMappingURL=get-add-buttons.js.map
