react-styleguidist
Version:
React components style guide generator
20 lines (17 loc) • 501 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import Section from 'rsg-components/Section';
import SectionsRenderer from 'rsg-components/Sections/SectionsRenderer';
export default function Sections(_ref) {
var sections = _ref.sections;
return React.createElement(
SectionsRenderer,
null,
sections.map(function (section, idx) {
return React.createElement(Section, { key: idx, section: section });
})
);
}
Sections.propTypes = {
sections: PropTypes.array.isRequired
};