import Avatar from "./avatar"; import Date from "./date"; import CoverImage from "./cover-image"; import Link from "next/link"; import AuthorType from "../types/authorType"; type Props = { title: string; coverImage: string; date: string; excerpt: string; author: AuthorType; slug: string; }; export default function PostPreview({ title, coverImage, date, excerpt, author, slug, }: Props) { return (