{post.date && format(parseISO(post.date), 'MMMM dd, yyyy')}
{post.title}
{post.description}
/* 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 (
{post.date && format(parseISO(post.date), 'MMMM dd, yyyy')}
{post.description}