/**
 * Nav List
 */

import React from 'react';
import PropTypes from 'prop-types';

const NavList = ({ className, children, ariaLabel, ...rest }) => (
  <nav
    data-test-nav-list
    className={className}
    aria-label={ariaLabel}
    {...rest}
  >
    {children}
  </nav>
);

NavList.propTypes = {
  children: PropTypes.oneOfType([
    PropTypes.arrayOf(PropTypes.node),
    PropTypes.node,
  ]),
  className: PropTypes.string,
};

export default NavList;

/**
 * Nav List
 */

import React from 'react';
import PropTypes from 'prop-types';

const NavList = ({ className, children, ariaLabel, ...rest }) => (
  <nav
    data-test-nav-list
    className={className}
    aria-label={ariaLabel}
    {...rest}
  >
    {children}
  </nav>
);

NavList.propTypes = {
  ariaLabel: PropTypes.string,
  children: PropTypes.oneOfType([
    PropTypes.arrayOf(PropTypes.node),
    PropTypes.node,
  ]),
  className: PropTypes.string,
};

export default NavList;

Add prop-types validation for ariaLabel
UICAL-85: Add prop-types validation for ariaLabel
