import { Search, TrendingUp, BarChart3, Zap, Mail, Instagram, Globe, Share2, Bookmark, User, Clock, ChevronRight } from 'lucide-react'; export default function AuthorityTheme({ posts = [], activeView = 'home', currentArticle, children }: { posts?: any[], activeView?: 'home' | 'article', currentArticle?: any, children?: React.ReactNode }) { const articlesToRender = posts && posts.length > 0 ? posts.map((p, i) => ({ id: p.slug || p.id, category: p.category_name || 'ANALYSIS', title: p.title, excerpt: p.excerpt, author: p.author_name || 'Alex Rivera', time: '8 min', img: p.image || `https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&q=80&w=800&random=${i}`, content: p.content, date: new Date(p.created_at || Date.now()).toLocaleDateString('pt-BR') })) : [ { id: '1', title: 'The New Era of SEO: Google AI Redefined', excerpt: 'It is no longer about keywords. It is about entity, authority, and real user experience.', category: 'ANALYSIS', author: 'Alex Rivera', time: '5 min', img: 'https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&q=80&w=800' }, { id: '2', title: 'SaaS SEO: The Growth Guide', excerpt: 'How to scale your SaaS organic traffic from zero to 100k.', category: 'CASE STUDY', author: 'Mariana Costa', time: '8 min', img: 'https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&q=80&w=800' }, ]; const displayArticle = currentArticle ? { ...currentArticle, id: currentArticle.slug || currentArticle.id, category: currentArticle.category_name || 'REPORT', author: currentArticle.author_name || 'SEO Team', img: currentArticle.image || `https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&q=80&w=800` } : articlesToRender[0]; return (
{/* Premium Navigation */} {activeView === 'home' ? (
{/* Hero Grid */}
Main
{articlesToRender[0].category}

{articlesToRender[0].title}

{articlesToRender[0].excerpt}

Next-Gen SEO Metrics

Optimize for Google SGE now.

{/* Content Grid */}

TRENDING NOW

View All
{articlesToRender.slice(0, 5).map((art, idx) => (
{art.title}/
) : ( /* --- ARTICLE VIEW --- */
{displayArticle.category} // 2026

{displayArticle.title}

{displayArticle.author.slice(0, 2)}

{displayArticle.author}

Published {displayArticle.date}

Article
{children}
)} {/* Premium Footer */}
); }