import React from 'react'; import { Card, List, Tag,PostImage } from '../../styles/components/blog/PostsList.style'; import { Link } from '../../i18n'; import NewsletterCard from './NewsletterCard'; export interface PostItem { uid: string; image: string; tag: string; tagUid: string; title: string; description: string; } interface Props { posts: PostItem[]; firstMain?: boolean; hideNewsletter?: boolean; } const PostsList: React.FC = ({ posts, firstMain = false, hideNewsletter }) => ( {posts.map(({ uid, image, tag, tagUid, title, description }, index) =>
{tag}

{title}

{description}

Lire la suite
{!hideNewsletter && (firstMain ? 2 : 1) === index && }
)}
); export default PostsList;