import React, { useState } from 'react'; import { Link } from 'react-router-dom'; import { LayoutDashboard, Edit3, ShoppingBag, CreditCard, LogOut, Eye } from 'lucide-react'; import { User } from '../types'; import { MOCK_BUSINESSES } from '../services/mockData'; import DashboardOverview from '../components/dashboard/DashboardOverview'; import DashboardProfile from '../components/dashboard/DashboardProfile'; import DashboardOffers from '../components/dashboard/DashboardOffers'; import PricingSection from '../components/PricingSection'; const DashboardPage = ({ user, onLogout }: { user: User, onLogout: () => void }) => { const [currentView, setCurrentView] = useState<'overview' | 'profile' | 'offers' | 'subscription'>('overview'); const [business, setBusiness] = useState(MOCK_BUSINESSES[0]); // In real app, fetch by user.id return (
{/* 1. Sidebar */}
A
Afropreunariat
{user.name.charAt(0)}

{user.name}

Actif
{/* 2. Main Content */}

{currentView === 'overview' && 'Vue d\'ensemble'} {currentView === 'profile' && 'Mon Profil'} {currentView === 'offers' && 'Gestion des Offres'} {currentView === 'subscription' && 'Mon Abonnement'}

Voir ma fiche
{currentView === 'overview' && } {currentView === 'profile' && } {currentView === 'offers' && } {currentView === 'subscription' && (

Abonnement Actuel : Starter (Gratuit)

Passez au niveau supérieur pour débloquer plus de fonctionnalités.

Actif
)}
); } export default DashboardPage;