import { formatDate } from "@lib/utils" import type { BlogPost, Project } from "@lib/appwrite-service" type Props = { entry: BlogPost | Project | any collection?: string pill?: boolean } export default function ArrowCard({entry, pill, collection}: Props) { return (
{pill &&
{collection === "blog" ? "post" : "project"}
}
{formatDate(entry.date)}
{entry.title}
{entry.summary}
) }