@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
32 lines • 1.05 kB
JavaScript
/**
* @jsxRuntime classic
* @jsx jsx
*/
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
import { css, jsx } from '@emotion/react';
var separator = css({
background: "var(--ds-border, #0B120E24)",
width: '1px',
height: '20px',
margin: "0 ".concat("var(--ds-space-050, 4px)"),
alignSelf: 'center'
});
var separatorNew = css({
background: "var(--ds-border, #0B120E24)",
width: '1px',
height: '20px',
alignSelf: 'center'
});
var separatorFullHeight = css({
height: '40px'
});
export default (function (_ref) {
var fullHeight = _ref.fullHeight,
areAnyNewToolbarFlagsEnabled = _ref.areAnyNewToolbarFlagsEnabled;
return jsx("div", {
css: [areAnyNewToolbarFlagsEnabled ? separatorNew : separator, fullHeight && separatorFullHeight]
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
,
className: "separator"
});
});