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

export const metadata = {
  title: "Refunds - Staff Dashboard",
  description: "Process and manage customer refunds",
};

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

  return (
    <div className="space-y-6">
      <div>
        <h1 className="text-3xl font-bold text-brand-ink">
          Refunds Management
        </h1>
        <p className="text-gray-600 mt-1">Process and track customer refunds</p>
      </div>

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