UNPKG

@atlaskit/renderer

Version:
13 lines 636 B
import _extends from "@babel/runtime/helpers/extends"; import React from 'react'; export default function DataConsumer(props) { var WrapperElement = props.isInline ? 'span' : 'div'; return /*#__PURE__*/React.createElement(WrapperElement // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed) , _extends({ "data-source": props.sources ? JSON.stringify(props.sources) : undefined, "data-mark-type": "dataConsumer" // Ignored via go/ees005 // eslint-disable-next-line react/jsx-props-no-spreading }, props.dataAttributes), props.children); }