"use client"; import { motion } from "framer-motion"; import { Instagram } from "@/components/InstagramIcon"; type InstaPost = { id: string; imageUrl: string; url: string; caption: string; }; export default function InstagramFeed({ posts }: { posts: InstaPost[] }) { if (!posts || posts.length === 0) { return null; // Eğer post yoksa veya API hata verdiyse gizle } return (

@kozmosbeach

Bizi Instagram'da takip edin, en yeni etkinliklerden ve plajımızdaki harika anlardan anında haberdar olun.
{posts.map((post, i) => ( {/* Instagram image is loaded via img instead of next/image to avoid domain config issues with FB/IG CDNs */} {post.imageUrl ? ( {post.caption ) : (
)}
))}
Daha Fazlası İçin Takip Et
); }