import { createFileRoute } from '@tanstack/react-router'
import { requirePermission } from '@/lib/permissions'
import { AdminUsersPage } from '@/features/admin/users-page'

export const Route = createFileRoute('/_authenticated/system/users')({
  beforeLoad: () => requirePermission('admin/users', 'read'),
  component: AdminUsersPage,
})
