import { createFileRoute } from '@tanstack/react-router'
import { requirePermission } from '@/lib/permissions'
import { AdminAuditLogsPage } from '@/features/admin/audit-logs-page'

export const Route = createFileRoute('/_authenticated/system/audit-logs')({
  beforeLoad: () => requirePermission('admin/audit-logs', 'read'),
  component: AdminAuditLogsPage,
})
