import axios from "../../../config/axios";

import type { UserResponse } from "../types/Types";

export const getUsers = async (
  page: number = 1,
  limit: number = 10,
  search: string
): Promise<UserResponse> => {
  const { data } = await axios.get("/admin/users", {
    params: { page, limit, q: search },
  });
  return data;
};
