import Header from "@/src/components/layouts/header"; import { Alert, AlertDescription, AlertTitle } from "@/src/components/ui/alert"; import { AuditLogsTable } from "@/src/ee/features/audit-log-viewer/AuditLogsTable"; import { useHasEntitlement } from "@/src/features/entitlements/hooks"; import { useHasOrganizationAccess } from "@/src/features/rbac/utils/checkOrganizationAccess"; export function OrgAuditLogsSettingsPage(props: { orgId: string }) { const hasAccess = useHasOrganizationAccess({ organizationId: props.orgId, scope: "auditLogs:read", }); const hasEntitlement = useHasEntitlement("audit-logs"); const body = !hasEntitlement ? (

Audit logs are an Enterprise feature. Upgrade your plan to track all changes made to your organization.

) : !hasAccess ? ( Access Denied Contact your organization administrator to request access. ) : ( ); return ( <>

Track who changed what in your organization and when. Monitor organization settings, project creation/deletion, and membership changes over time.

{body} ); }