import { requireStaffAuth } from "@/lib/staff-auth";
import UsersList from "@/components/staff/UsersList";

export const metadata = {
  title: "Users - Staff Dashboard",
  description: "User management and analytics",
};

export default async function UsersPage() {
  const user = await requireStaffAuth();

  return (
    <div className="space-y-6">
      <div>
        <h1 className="text-3xl font-bold text-brand-ink">User Management</h1>
        <p className="text-gray-600 mt-1">
          View and manage all registered users
        </p>
      </div>

      <UsersList user={user} />
    </div>
  );
}
