'use client'; import Link from 'next/link'; import { motion } from 'framer-motion'; import { useLocale } from '@/lib/i18n/locale-context'; import { SectionHeader } from '@/components/ui/SectionHeader'; import { cn } from '@/lib/utils'; const FA_DIGITS = ['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹'] as const; const toFa = (n: number) => n.toString().replace(/\d/g, (d) => FA_DIGITS[Number(d)]); const CATEGORY_COLOR: Record = { LLM: 'text-magenta border-magenta/30 bg-magenta/5', Automation: 'text-violet border-violet/30 bg-violet/5', 'Google Stack': 'text-cyan border-cyan/30 bg-cyan/5', Infra: 'text-emerald border-emerald/30 bg-emerald/5', Mobile: 'text-electric border-electric/30 bg-electric/5', Strategy: 'text-electric border-electric/30 bg-electric/5', }; export function Blog() { const { t, locale } = useLocale(); return (
{t.blog.items.map((post, i) => (
{post.category} {locale === 'fa' ? toFa(post.readTime) : post.readTime}{' '} {t.blog.readTimeSuffix}

{post.title}

{post.excerpt}

{t.blog.readMore}
))}
); } function Arrow({ locale }: { locale: 'fa' | 'en' }) { return ( ); }