import { useState } from 'react'; import { UploadTab } from './UploadTab'; import { StickersTab } from './StickersTab'; import { TextTab } from './TextTab'; const TABS = [ { id: 'upload', label: 'Upload', icon: '📁' }, { id: 'stickers', label: 'Stickers', icon: '😊' }, { id: 'text', label: 'Text', icon: 'T' }, ]; export function Sidebar({ onElementAdd, onUpload }) { const [activeTab, setActiveTab] = useState('upload'); const renderTabContent = () => { switch (activeTab) { case 'upload': return ; case 'stickers': return ; case 'text': return ; default: return null; } }; return (
{TABS.map((tab) => ( ))}
{renderTabContent()}
); }