@shopify/polaris
Version:
Shopify’s admin product component library
26 lines (22 loc) • 727 B
JavaScript
var React = require('react');
var Connected_module = require('./Connected.css.js');
var Item = require('./components/Item/Item.js');
function Connected({
children,
left,
right
}) {
const leftConnectionMarkup = left ? /*#__PURE__*/React.createElement(Item.Item, {
position: "left"
}, left) : null;
const rightConnectionMarkup = right ? /*#__PURE__*/React.createElement(Item.Item, {
position: "right"
}, right) : null;
return /*#__PURE__*/React.createElement("div", {
className: Connected_module.default.Connected
}, leftConnectionMarkup, /*#__PURE__*/React.createElement(Item.Item, {
position: "primary"
}, children), rightConnectionMarkup);
}
exports.Connected = Connected;
;