68dc1b605b
- Replace legacy macro/micro/offer_services CRUD page with thin server component fetching getOfferListCards() + getOfferFieldOptions() - Delegate rendering to new OfferListClient (Task 2)
18 lines
454 B
TypeScript
18 lines
454 B
TypeScript
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>
|
|
);
|
|
}
|