'use server' import type { UsersPage } from '@admin/actions/users/types' import { getCachedUsers } from '@admin/actions/users/get-cached-users' import { requireRole, UserRole } from '@admin/auth/middleware' export async function getUsers(): Promise { await requireRole([UserRole.ADMIN, UserRole.EDITOR]) return getCachedUsers() }