import '../styles/List.css';
import LazyLoad from 'react-lazyload';
import ViewArchived from './ViewArchived';
import deleteEntity from '../modules/deleteEntity';
const List = ({data, reFetch}) => {
return (
{data.map((e, i) => {
try {
const url = new URL(e.link);
const favicon = 'http://www.google.com/s2/favicons?domain=' + url.hostname;
return
{e.title}
{e.tag.map((e, i) => {
return
{e}
})}
deleteEntity(e._id, reFetch)}>
} catch (e) {
console.log(e);
}
})}
)
}
export default List