import Users from "@/app/features/Pages/Admin/Users/users";
import { IUser } from "@/app/features/Pages/Admin/Users/interfaces";
import { fetchUsers } from "@/app/services/users";

export default async function BackOfficeUsersPage() {
  let users: IUser[] = [];

  try {
    users = await fetchUsers();
  } catch (error) {
    console.error("Failed to fetch users:", error);
  }

  return (
    <div>
      <Users users={users} />
    </div>
  );
}
