'use client';
import type { ReactNode } from 'react';
import { PrivateLayout } from '@/layout';
import { useSessionRoleSync } from '@/services/auth';

export default function PrivateRouteLayout({ children }: { children: ReactNode }) {
  // Hydrate AuthContext roles from /me for a returning (server-seeded) session so the shells
  // pick the right chrome without a second role store.
  useSessionRoleSync();
  return <PrivateLayout>{children}</PrivateLayout>;
}
