Files
znakovni.hr/packages/frontend/src/components/layout/Layout.tsx
johnny2211 3275bc4a4f Add authentication system and admin panel
- 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
2026-01-17 14:30:22 +01:00

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>
);
}