import { apiFetch } from './client'; export function getUsers(offset = 0, limit = 20) { const params = new URLSearchParams({ offset, limit }); return apiFetch(`/api/users?${params}`); } export function updateUserRole(id, role) { return apiFetch(`/api/users/${id}/role`, { method: 'PATCH', body: JSON.stringify({ role }), }); } export function deleteUser(id) { return apiFetch(`/api/users/${id}`, { method: 'DELETE' }); }