import { Activity, Zap, TrendingUp, BarChart3, Globe, Share2, Instagram, Search, Menu, Send, ChevronRight, MessageCircle, Bookmark, Volume2, ArrowRight } from 'lucide-react';
export default function PulseTheme({ 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 || 'ALERT',
title: p.title,
excerpt: p.excerpt,
date: new Date(p.created_at || Date.now()).toLocaleDateString('pt-BR'),
img: p.image || `https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&q=80&w=1200&random=${i}`,
content: p.content
})) : [
{ id: '1', title: 'Google Core Update 04.2026: Live Tracking', category: 'URGENT', img: 'https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&q=80&w=1200' },
{ id: '2', title: 'Major Indexing Bug in Search Console Detected', category: 'SYSTEM', 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 || 'UPDATE',
img: currentArticle.image || `https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&q=80&w=1200`
} : articlesToRender[0];
return (
{/* High-Octane Header */}
{activeView === 'home' ? (
{/* Section 1: Live HUD Hero */}
Fast Data
Deep Insight.
O algoritmo do Google mudou há 12 minutos. Você está pronto para o impacto ou vai ficar para trás?
Get The Report Now
Live Feed
ID: {articlesToRender[0].id}
{/* Section 2: News Ticker Style Grid */}
{/* High-Octane CTA */}
) : (
/* --- ARTICLE VIEW --- */
Verified_Intelligence
{displayArticle.date}
{displayArticle.title}
{children}
)}
{/* Pulse Footer */}
);
}