import { AppShell } from "@/components/app-shell"
import { SiteHeader } from "@/components/site-header"
import { AdminMachinesOverview } from "@/components/admin/machines/admin-machines-overview"
import { DEFAULT_TENANT_ID } from "@/lib/constants"

export const runtime = "nodejs"
export const dynamic = "force-dynamic"

export default function AdminMachinesPage() {
  return (
    <AppShell
      header={
        <SiteHeader
          title="Parque de máquinas"
          lead="Acompanhe quais dispositivos estão ativos, métricas recentes e a sincronização do agente."
        />
      }
    >
      <div className="mx-auto w-full max-w-6xl px-4 pb-12 lg:px-6">
        <AdminMachinesOverview tenantId={DEFAULT_TENANT_ID} />
      </div>
    </AppShell>
  )
}
