Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3259 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3719 stevensc 1
import LazyFeed from '@components/dashboard/feed/lazy-feed';
2
import EmptySection from '@components/UI/EmptySection';
3
import React from 'react';
4
 
5
const FeedList = ({ feeds = [] }) => {
6
  if (!feeds.length) {
7
    return <EmptySection message='No hay publicaciones para mostrar' />;
8
  }
9
 
10
  return feeds.map(({ feed_unique, feed_uuid }) => <LazyFeed key={feed_uuid} id={feed_unique} />);
11
};
12
 
13
export default FeedList;