import type { Metadata } from "next";
import type { ReactNode } from "react";
import { AdminShellFrame } from "@/components/admin-shell-frame";
import { isAdminAuthEnabled } from "@/lib/admin-auth";

export const metadata: Metadata = {
  title: "Admin | Ballbox",
  description: "Admin host app for TVs, payments, network, sports, and players.",
};

export default function AdminLayout({ children }: { children: ReactNode }) {
  const authEnabled = isAdminAuthEnabled();

  return (
    <div className="admin-theme">
      <AdminShellFrame authEnabled={authEnabled}>{children}</AdminShellFrame>
    </div>
  );
}
