@atlaskit/editor-plugin-media-insert
Version:
Media Insert plugin for @atlaskit/editor-core
22 lines (21 loc) • 698 B
JavaScript
import React, { forwardRef } from 'react';
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
import { Box, xcss } from '@atlaskit/primitives';
const styles = xcss({
/* Reset inherited styles from toolbar */
whiteSpace: 'initial',
textAlign: 'initial',
boxShadow: 'elevation.shadow.overflow',
width: '340px',
padding: 'space.200',
borderRadius: 'radius.small',
backgroundColor: 'elevation.surface.overlay'
});
export const MediaInsertWrapper = /*#__PURE__*/forwardRef(({
children
}, ref) => {
return /*#__PURE__*/React.createElement(Box, {
ref: ref,
xcss: styles
}, children);
});