/** * * LeftMenuLinkContainer * */ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { get, map, size } from 'lodash'; import LeftMenuLink from 'components/LeftMenuLink'; import styles from './styles.scss'; import messages from './messages.json'; function LeftMenuLinkContainer({ plugins }) { // Generate the list of sections const linkSections = map(plugins.toJS(), plugin => ( plugin.leftMenuSections.map((leftMenuSection, j) => { if (size(get(leftMenuSection, 'links')) === 0) { return
; } return ({leftMenuSection.name}