UNPKG

@shopgate/engage

Version:
5 lines 620 B
import React from'react';import PropTypes from'prop-types';import Row from"./Row";import RowHTML from"./RowHTML";/** * Renders rows of product properties. * @param {Object} props The component props. * @returns {JSX.Element} */var Rows=function Rows(_ref){var properties=_ref.properties;return properties.map(function(_ref2){var value=_ref2.value,label=_ref2.label,type=_ref2.type;if(type==='html'){return React.createElement(RowHTML,{key:label,value:value,label:label});}return React.createElement(Row,{key:"".concat(label,"-").concat(value),label:label,value:value,type:type});});};export default React.memo(Rows);