import { requireAdminAuth } from "@/lib/staff-auth";
import SecurityDashboard from "@/components/staff/security/SecurityDashboard";

export const metadata = {
  title: "Security & Audit - Staff Dashboard",
  description: "Monitor security events, audit logs, and login activity",
};

export default async function SecurityPage() {
  // Only ADMIN and SUPER_ADMIN can access security dashboard
  await requireAdminAuth();

  return (
    <div className="space-y-6">
      <div>
        <h1 className="text-3xl font-bold text-brand-ink">
          Security & Audit Center
        </h1>
        <p className="text-gray-600 mt-1">
          Monitor audit logs, login activity, and security alerts
        </p>
      </div>

      <SecurityDashboard />
    </div>
  );
}
