import Avatar from "./avatar"; import Date from "./date"; import CoverImage from "./cover-image"; import Link from "next/link"; import { AuthorType, ImgixType } from "interfaces"; type PostPreviewProps = { title: string; coverImage: ImgixType; date: string; excerpt: string; author: AuthorType; slug: string; }; const PostPreview = (props: PostPreviewProps) => { const { title, coverImage, date, excerpt, author, slug } = props; return (
{excerpt}