'use client' import { motion } from "framer-motion" import Image from "next/image" import Link from "next/link" export default function NewsClient({ lang, dict, posts }: { lang: string, dict: any, posts: any[] }) { return (
{/* HEADER */}
{dict.news_page.title} {dict.news_page.excerpt}
{/* POSTS GRID */}
{posts.length > 0 ? (
{posts.map((post, idx) => (
{post.image && ( {post.title} )}
{post.author} {new Date(post.createdAt).toLocaleDateString(lang === 'tr' ? 'tr-TR' : 'en-US')}

{post.title}

{post.excerpt}

{dict.news_page.read}
))}
) : (

{lang === 'tr' ? 'Henüz yazı bulunmuyor.' : 'No stories found yet.'}

)}
) }