24 lines
584 B
TypeScript
24 lines
584 B
TypeScript
'use client';
|
|
|
|
import { AuthGuard } from '@/lib/gateways/AuthGuard';
|
|
import { ReactNode } from 'react';
|
|
|
|
interface OnboardingLayoutProps {
|
|
children: ReactNode;
|
|
}
|
|
|
|
/**
|
|
* Onboarding Layout
|
|
*
|
|
* Provides authentication protection for the onboarding flow.
|
|
* Wraps children with AuthGuard to ensure only authenticated users can access.
|
|
*/
|
|
export default function OnboardingLayout({ children }: OnboardingLayoutProps) {
|
|
return (
|
|
<AuthGuard redirectPath="/auth/login">
|
|
<div className="min-h-screen bg-deep-graphite">
|
|
{children}
|
|
</div>
|
|
</AuthGuard>
|
|
);
|
|
} |