code: function renderNavItems({ pages, ...params }) {
    return (
      <List>
        {pages.reduce(
          // eslint-disable-next-line no-use-before-define
          (items, page) => reduceChildRoutes({ items, page, ...params }),
          [],
        )}
      </List>
    );
  }
docs: eslint-disable-next-line react/prop-types