import { DashboardPlaceholder } from "@/components/placeholders";
import { PlaceholderActions, ShellPage } from "@/components/page-templates";
import { getPlatformSummary } from "@/lib/platform-data";

export default async function SuperAdminDashboardPage() {
  const data = await getPlatformSummary();

  return (
    <ShellPage
      shell="super-admin"
      title="Super Admin Dashboard"
      description="Global KPI, tenant health, channel failures, dan subscription overview."
      actions={<PlaceholderActions primaryHref="/super-admin/tenants/new" primaryLabel="Create tenant" secondaryHref="/super-admin/channels" secondaryLabel="View channels" />}
    >
      <DashboardPlaceholder stats={data.stats} priorityQueue={data.tenants} />
    </ShellPage>
  );
}
