import { useNavigate } from 'react-router-dom'; import Layout from '../components/Layout'; const TILES = [ { title: 'Datenbankverwaltung', icon: '🗄️', description: 'Alle Tabellen, Datensätze, Filter und verknüpfte Felder.', path: '/db', color: 'border-indigo-200 hover:border-indigo-400 hover:bg-indigo-50', }, { title: 'Contentverwaltung', icon: '✏️', description: 'Inhalte erstellen, bearbeiten und veröffentlichen.', path: null, color: 'border-slate-200 hover:border-slate-300 bg-slate-50 opacity-60 cursor-not-allowed', soon: true, }, ]; export default function Dashboard() { const navigate = useNavigate(); return (

Dashboard

{TILES.map(tile => (
tile.path && navigate(tile.path)} className={`bg-white rounded-2xl border-2 p-6 transition-all ${tile.color} ${tile.path ? 'cursor-pointer' : ''}`} >
{tile.icon}

{tile.title}

{tile.description}

{tile.soon && ( Demnächst )}
))}
); }