Files
gridpilot.gg/apps/website/app/dashboard/layout.tsx
2026-01-01 16:32:06 +01:00

24 lines
581 B
TypeScript

'use client';
import { AuthGuard } from '@/lib/gateways/AuthGuard';
import { ReactNode } from 'react';
interface DashboardLayoutProps {
children: ReactNode;
}
/**
* Dashboard Layout
*
* Provides authentication protection for all dashboard routes.
* Wraps children with AuthGuard to ensure only authenticated users can access.
*/
export default function DashboardLayout({ children }: DashboardLayoutProps) {
return (
<AuthGuard redirectPath="/auth/login">
<div className="min-h-screen bg-deep-graphite">
{children}
</div>
</AuthGuard>
);
}