/* eslint-disable unicorn/prevent-abbreviations */ import { format, parseISO } from 'date-fns'; import Link from 'next/link'; import PostType from 'types/post'; import React from 'react'; type Properties = { posts: PostType[]; }; const Blog = (props: Properties): JSX.Element => { const { posts } = props; return (

Welcome on the SupaNexTail blog

{posts.map((post) => (

{post.date && format(parseISO(post.date), 'MMMM dd, yyyy')}

{post.title}

{post.description}

Read More

))}
); }; export default Blog;