import './_theme/theme.css';
import type { Metadata } from 'next';
import { ThemeProvider } from './_components/ThemeProvider';
import { ExecutiveAuthWrapper } from './_components/ExecutiveAuthWrapper';

export const metadata: Metadata = {
    title: 'UpTime Sentinel — Executive Command',
    description: 'Real-time uptime & SLA command dashboard',
};

/**
 * Root layout for the login-less Executive display app. Establishes the
 * `.noc` themed root (dark/light tokens) around everything under /executive,
 * including the standalone /executive/wall. The Mission Control rail shell
 * lives in the (rail) route group so the wall can opt out of it.
 */
export default function ExecutiveLayout({ children }: { children: React.ReactNode }) {
    return (
        <ThemeProvider>
            <ExecutiveAuthWrapper>{children}</ExecutiveAuthWrapper>
        </ThemeProvider>
    );
}
