import { canSee } from "@/lib/session";
import { getPortalSession } from "@/lib/get-session";
import { loadTenantForShell } from "@/lib/portal-data";
import { Panel } from "@/components/portal/Panel";
import { NotAllowed } from "@/components/portal/NotAllowed";
const EVENT_FILTERS = ["all", "auth", "scan", "finding", "evidence", "billing", "settings"];
export default async function AuditPage({
params,
searchParams,
}: {
params: Promise<{ slug: string }>;
searchParams: Promise<{ q?: string; type?: string; product?: string }>;
}) {
const { slug } = await params;
const sp = await searchParams;
const session = await getPortalSession();
if (!canSee(session, "audit")) return
| When | Event | Actor | Product | Source IP | Result |
|---|---|---|---|---|---|
| {r.date} {r.time} | {r.event} | {r.actor} | {r.product} | {r.ip} | {r.result === "denied" ? "DENIED" : "OK"} |