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

{title}

); }