import { PageMeta, PagePublic } from "@/lib/pages/types"; import { CalendarIcon, Globe2Icon } from "lucide-react"; import Link from "next/link"; import { Badge } from "./ui/badge"; import { formatDate } from "@/lib/utils"; export function NewsCard({ news }: { news: PagePublic }) { return (

{news.title}

{formatDate(news.publishedAt)}

{(news?.meta as PageMeta)?.location &&

{(news.meta as PageMeta)?.location}

}
{((news.meta as PageMeta)?.tags)?.map((tag) => ( {tag} ))}
); }