import { getOfferListCards, getOfferFieldOptions } from "@/lib/offer-queries";
import { OfferListClient } from "@/components/admin/offers/OfferListClient";

export const revalidate = 0;

export default async function OffersPage() {
  const [cards, options] = await Promise.all([
    getOfferListCards(),
    getOfferFieldOptions(),
  ]);

  return (
    <div>
      <OfferListClient cards={cards} categoryOptions={options.categoria} />
    </div>
  );
}
