// @flow
import PropTypes from 'prop-types';
import {
  translatedContentPropType,
  type TranslatedContent,
} from '../../../types';

export type SecondaryNavigationProps = {
  navItems: { label: TranslatedContent, href: string, onClick?: () => void }[],
};

export const secondaryNavigationPropTypes = {
  navItems: PropTypes.arrayOf(
    PropTypes.shape({
      label: translatedContentPropType,
      href: PropTypes.string.isRequired,
      onClick: PropTypes.func,
    }),
  ).isRequired,
};
