UNPKG

@atlaskit/editor-plugin-media-insert

Version:

Media Insert plugin for @atlaskit/editor-core

24 lines (23 loc) • 889 B
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 } from '@atlaskit/primitives/box'; // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss import { xcss } from '@atlaskit/primitives/xcss/xcss'; 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); });