'use client'; import { useState } from 'react'; import Image from 'next/image'; import styles from './Features.module.css'; export default function Features() { const [activeIndex, setActiveIndex] = useState(0); const features = [ { icon: '📅', title: 'Smart Scheduling', description: 'Schedule posts across all platforms with AI-powered optimal timing suggestions to maximize your reach and engagement.', color: '#667eea', image: '/features/scheduling.png' }, { icon: '📊', title: 'Advanced Analytics', description: 'Track performance metrics, engagement rates, and audience insights in real-time with comprehensive interactive dashboards.', color: '#ec4899', image: '/features/analytics.png' }, { icon: '🤖', title: 'AI Content Assistant', description: 'Generate engaging captions, hashtags, and creative content ideas instantly with our advanced AI-powered writing tools.', color: '#14b8a6', image: '/features/ai.png' }, { icon: '👥', title: 'Team Collaboration', description: 'Work seamlessly with your team using role-based access, approval workflows, and shared content calendars.', color: '#f59e0b', image: '/features/platforms.png' }, { icon: '📱', title: 'Multi-Platform Support', description: 'Manage Facebook, Instagram, Twitter, LinkedIn, and more from a single, unified dashboard without switching tabs.', color: '#8b5cf6', image: '/features/platforms.png' }, { icon: '🔔', title: 'Real-Time Notifications', description: 'Stay on top of your community with instant alerts for new mentions, comments, and engagement opportunities.', color: '#ef4444', image: '/features/ai.png' }, ]; return (
Features

Everything You Need to Succeed

Powerful tools designed to streamline your social media management and boost your online presence.

{/* Left Column: Image Preview */}
{features.map((feature, index) => ( {feature.title} ))}
{/* Right Column: Accordion */}
{features.map((feature, index) => (
setActiveIndex(index)} >
{feature.icon}

{feature.title}

{feature.title}
{feature.description}
))}
); }