import { BrowserRouter, Routes, Route, NavLink } from 'react-router-dom'; import Dashboard from './pages/Dashboard'; import Chat from './pages/Chat'; import Characters from './pages/Characters'; import Editor from './pages/Editor'; import Memories from './pages/Memories'; function NavItem({ to, children, icon }) { return ( `flex items-center gap-3 px-4 py-2.5 rounded-lg text-sm font-medium transition-colors ${ isActive ? 'bg-gray-800 text-white' : 'text-gray-400 hover:text-gray-200 hover:bg-gray-800/50' }` } > {icon} {children} ); } function Layout({ children }) { return (
{/* Sidebar */} {/* Main content */}
{children}
); } function App() { return (
} /> } />
} />
} />
} />
); } export default App;