const getItems = (items, index) => {
  const { children } = items[index] || {};
  return children || [];
};

const selectClass = (index, i) => (index === i ? ' selected' : '');

export default {
  getItems,
  selectClass,
};
