import React, { useState } from 'react'; import Sidebar from './Sidebar'; import CreationCenter from '../Sections/CreationCenter'; import ProjectManagement from '../Sections/ProjectManagement'; import AIModels from '../Sections/AIModels'; import Settings from '../Sections/Settings'; import AdminPanel from '../Sections/AdminPanel'; import { useAuth } from '../../hooks/useAuth'; const Layout: React.FC = () => { const [activeSection, setActiveSection] = useState('creation'); const { user } = useAuth(); const renderSection = () => { switch (activeSection) { case 'creation': return ; case 'projects': return ; case 'ai-models': return ; case 'settings': return ; case 'admin': return user?.role === 'admin' ? : ; default: return ; } }; return (
{renderSection()}
); }; export default Layout;