import type { Metadata } from 'next';
import { ReactNode } from 'react';
import './globals.css';
import { Providers } from '../lib/providers';
import { Header } from '../components/Header';

export const metadata: Metadata = {
  title: 'The Order - Internal Portal',
  description: 'Internal portal for The Order (admin/ops)',
};

export default function RootLayout({
  children,
}: {
  children: ReactNode;
}): JSX.Element {
  return (
    <html lang="en">
      <body className="flex flex-col min-h-screen">
        <Providers>
          <Header />
          <main className="flex-1">{children}</main>
        </Providers>
      </body>
    </html>
  );
}

