@shopgate/engage
Version:
Shopgate's ENGAGE library.
28 lines (27 loc) • 764 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import { PRODUCT_PROPERTIES } from '@shopgate/engage/product/constants';
import { SurroundPortals } from '@shopgate/engage/components';
import Content from "./Content";
import connect from "./connector";
/**
* Renders the product properties.
* @param {Object} props The component props.
* @returns {JSX.Element}
*/
import { jsx as _jsx } from "react/jsx-runtime";
const ProductProperties = ({
properties
}) => /*#__PURE__*/_jsx(SurroundPortals, {
portalName: PRODUCT_PROPERTIES,
portalProps: {
properties
},
children: /*#__PURE__*/_jsx(Content, {
properties: properties
})
});
ProductProperties.defaultProps = {
properties: null
};
export default connect(ProductProperties);