text: /**
   * Copyright IBM Corp. 2016, 2018
   *
   * This source code is licensed under the Apache-2.0 license found in the
   * LICENSE file in the root directory of this source tree.
   */
  import { settings } from 'carbon-components';
  import cx from 'classnames';
  import PropTypes from 'prop-types';
  import React from 'react';
  var prefix = settings.prefix;
  
  var SideNavItems = function SideNavItems(_ref) {
    var customClassName = _ref.className,
        children = _ref.children,
        isSideNavExpanded = _ref.isSideNavExpanded;
    var className = cx(["".concat(prefix, "--side-nav__items")], customClassName);
    var childrenWithExpandedState = React.Children.map(children, function (child) {
      if ( /*#__PURE__*/React.isValidElement(child)) {
        return /*#__PURE__*/React.cloneElement(child, {
          isSideNavExpanded: isSideNavExpanded
        });
      }
    });
    return /*#__PURE__*/React.createElement("ul", {
      className: className
    }, childrenWithExpandedState);
  };
  
  SideNavItems.propTypes = {
    /**
     * Provide a single icon as the child to `SideNavIcon` to render in the
     * container
     */
    children: PropTypes.node.isRequired,
  
    /**
     * Provide an optional class to be applied to the containing node
     */
    className: PropTypes.string,
  
    /**
     * Property to indicate if the side nav container is open (or not). Use to
     * keep local state and styling in step with the SideNav expansion state.
     */
    isSideNavExpanded: PropTypes.bool
  };
  export default SideNavItems;