UNPKG

@atlaskit/editor-plugin-table

Version:

Table plugin for the @atlaskit/editor

16 lines 418 B
import React from 'react'; import { RawIntlProvider } from 'react-intl'; import { isSSR } from '@atlaskit/editor-common/core-utils'; export function TableSSRReactContextsProvider(_ref) { var children = _ref.children, intl = _ref.intl; if (!isSSR()) { return children; } if (!intl) { return children; } return /*#__PURE__*/React.createElement(RawIntlProvider, { value: intl }, children); }