import { AddSmall, DismissSmall } from "@wix/wix-ui-icons-common";
import classNames from "classnames";
import React, { useContext } from "react";
import { RicosContext } from "./../../../ricos-context/index.js";
import { ADD_PLUGIN_FLOATING_TOOLBAR } from "./data-hooks.js";
import styles from "./styles/floating-add-plugin-menu-scss.js";
const PlusButton = React.forwardRef(
  ({ position, onClick, rotate, direction }, ref) => {
    const { tabIndex } = useContext(RicosContext);
    return /* @__PURE__ */ React.createElement(
      "button",
      {
        type: "button",
        "data-hook": ADD_PLUGIN_FLOATING_TOOLBAR,
        ref,
        onClick,
        className: classNames(
          styles.floatingAddPluginMenu_plus_button_position,
          styles.floatingAddPluginMenu_plus_button,
          styles[direction]
        ),
        style: position,
        tabIndex
      },
      rotate ? /* @__PURE__ */ React.createElement(DismissSmall, { fill: "currentColor" }) : /* @__PURE__ */ React.createElement(AddSmall, { fill: "currentColor" })
    );
  }
);
export {
  PlusButton
};
//# sourceMappingURL=plus-button.js.map
