"use client"; import Link from "next/link"; import Image from "next/image"; import { BlogPost } from "@/lib/blog"; interface FeaturedBlogProps { posts: BlogPost[]; } const CalendarIcon = () => ( ); const ArrowRightIcon = () => ( ); export default function FeaturedBlog({ posts }: FeaturedBlogProps) { if (!posts || posts.length === 0) { return null; } return ( Najnowsze wpisy z bloga Dowiedz się więcej o AI, automatyzacji i innowacjach technologicznych {posts.slice(0, 3).map((post) => ( {new Date(post.publishedAt).toLocaleDateString("pl-PL", { year: "numeric", month: "long", day: "numeric", })} {post.title} {post.excerpt} Czytaj więcej ))} Zobacz wszystkie wpisy ); }
Dowiedz się więcej o AI, automatyzacji i innowacjach technologicznych
{post.excerpt}