UNPKG

@atlaskit/editor-common

Version:

A package that contains common classes and components for editor and renderer

25 lines 1.16 kB
import _extends from "@babel/runtime/helpers/extends"; // 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. import React from 'react'; import Button from '@atlaskit/button/standard-button'; import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals'; var toolbarButtonStyle = { alignItems: 'center' }; var _default_1 = /*#__PURE__*/React.forwardRef(function (props, ref) { return /*#__PURE__*/React.createElement(Button, _extends({ 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: expValEquals('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? toolbarButtonStyle : { alignItems: 'center' } })); }); export default _default_1;