import { useLanguage } from '../context/LanguageContext'; import Footer from '../components/Footer'; function Analytics() { const { t } = useLanguage(); const metrics = [ { id: 1, title: 'Engagement Analytics', description: t('analytics.metrics.engagement.description'), icon: '📊', stats: { metrics: '15+', update: 'Real-time', export: 'CSV/PDF' } }, { id: 2, title: 'Audience Insights', description: t('analytics.metrics.audience.description'), icon: '👥', stats: { segments: '8+', reach: 'Global', tracking: '24/7' } }, { id: 3, title: 'Performance Tracking', description: t('analytics.metrics.performance.description'), icon: '📈', stats: { kpis: '20+', reports: 'Custom', history: '12 months' } } ]; const dashboardSections = [ { title: t('analytics.dashboard.growth'), percentage: '+127%', trend: 'up' }, { title: t('analytics.dashboard.engagement'), percentage: '+85%', trend: 'up' }, { title: t('analytics.dashboard.conversion'), percentage: '+45%', trend: 'up' } ]; return (
{/* Floating elements */}
{/* Header section */}

{t('analytics.title')}

{t('analytics.description')}

{/* Dashboard Preview */}

{t('analytics.dashboard.title')}

{dashboardSections.map((section) => (

{section.title}

{section.percentage}
↑
))}
{/* Metrics and Actions */}
{/* Metrics Overview */}
{metrics.map((metric) => (
{metric.icon}

{metric.title}

{metric.description}

{Object.entries(metric.stats).map(([key, value]) => (
{key} {value}
))}
))}
{/* Quick Actions */}

{t('analytics.actions.title')}

{[ 'Generate Report', 'Export Data', 'Set Alerts', 'Share Dashboard', 'Configure KPIs' ].map((action) => (
{action}
))}
); } export default Analytics;