- Implement JWT-based authentication with login/logout - Add user management routes and middleware - Create admin panel for managing words and categories - Add authentication store and API client - Update database schema with User model - Configure CORS and authentication middleware - Add login page and protected routes
21 lines
427 B
TypeScript
21 lines
427 B
TypeScript
import { ReactNode } from 'react';
|
|
import { Sidebar } from './Sidebar';
|
|
|
|
interface LayoutProps {
|
|
children: ReactNode;
|
|
}
|
|
|
|
export function Layout({ children }: LayoutProps) {
|
|
return (
|
|
<div className="flex h-screen bg-slate-50">
|
|
<Sidebar />
|
|
<main className="flex-1 overflow-y-auto">
|
|
<div className="container mx-auto p-6 max-w-7xl">
|
|
{children}
|
|
</div>
|
|
</main>
|
|
</div>
|
|
);
|
|
}
|
|
|