"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
// If you make any change here, copy it to above file as well
//  and notify about the change in #team-fc-editor-ai-dev channel.

var toolbarButtonStyle = {
  alignItems: 'center'
};
var _default_1 = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
  return /*#__PURE__*/_react.default.createElement(_standardButton.default, (0, _extends2.default)({
    ref: ref
    // Ignored via go/ees005
    // eslint-disable-next-line react/jsx-props-no-spreading
  }, props, {
    // Ignored via go/ees007
    // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
    // TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
    // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
    style: (0, _expValEquals.expValEquals)('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? toolbarButtonStyle : {
      alignItems: 'center'
    }
  }));
});
var _default = exports.default = _default_1;