/** * Start page — shown after login. * 2-column layout: left menu, right grid with workspace tiles. */ import React from 'react'; import { useNavigate } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import { useAuthStore } from '@/store/authStore'; import { useUIStore } from '@/store/uiStore'; import { Settings, HelpCircle, LayoutGrid, ArrowRight, Plus } from 'lucide-react'; // Workspace tile definition interface WorkspaceTile { id: string; name: string; description: string; icon: React.ReactNode; color: string; path: string; } const DEFAULT_WORKSPACES: WorkspaceTile[] = [ { id: 'main', name: 'Haupt-Workspace', description: 'Kontakte, Kalender, Mail und mehr', icon: , color: 'from-blue-500 to-blue-600', path: '/dashboard', }, ]; export function StartPage() { const { t } = useTranslation(); const navigate = useNavigate(); const user = useAuthStore((state) => state.user); const sidebarOpen = useUIStore((state) => state.sidebarOpen); const menuItems = [ { id: 'workspaces', label: 'Workspaces', icon: , active: true }, { id: 'settings', label: 'Einstellungen', icon: , onClick: () => navigate('/settings') }, { id: 'help', label: 'Hilfe', icon: , onClick: () => navigate('/help/welcome') }, ]; return (
{/* Left column — menu (toggleable via hamburger) */} {/* Right column — workspace grid */}

Willkommen{user?.first_name ? `, ${user.first_name}` : ''}!

Wähle einen Workspace aus

{/* Masonry-style grid */}
{DEFAULT_WORKSPACES.map((ws) => ( ))} {/* Add workspace placeholder */}
); }