import { Placeholder } from "@/components/ui/Placeholder"; import { SectionTitle } from "@/components/ui/SectionTitle"; import { Carousel } from "@/components/ui/Carousel"; import { EmptyState } from "@/components/ui/EmptyState"; import type { BlogSummary } from "@/lib/meshkee"; function formatDate(iso?: string) { if (!iso) return ""; return new Intl.DateTimeFormat("fa-IR", { dateStyle: "long" }).format(new Date(iso)); } export function BlogCarousel({ posts }: { posts: BlogSummary[] }) { return (
{posts.length === 0 ? ( ) : ( {posts.map((post) => ( ))} )}
); }