diff --git a/src/app/admin/offers/page.tsx b/src/app/admin/offers/page.tsx index b7a0919..61d8008 100644 --- a/src/app/admin/offers/page.tsx +++ b/src/app/admin/offers/page.tsx @@ -1,238 +1,17 @@ -import { getCatalogWithMicros, getAllOfferServices } from "@/lib/offer-queries"; -import { - createMacro, - createMicro, - createOfferService, - deleteMacro, - deleteMicro, - toggleOfferServiceActive, -} from "./actions"; -import { ServiceCheckboxList } from "@/components/admin/offers/ServiceCheckboxList"; +import { getOfferListCards, getOfferFieldOptions } from "@/lib/offer-queries"; +import { OfferListClient } from "@/components/admin/offers/OfferListClient"; export const revalidate = 0; export default async function OffersPage() { - const [catalog, allServices] = await Promise.all([ - getCatalogWithMicros(), - getAllOfferServices(), + const [cards, options] = await Promise.all([ + getOfferListCards(), + getOfferFieldOptions(), ]); return ( -
-

Catalogo Offerte

- - {/* ── Sezione macro-offerte ── */} -
-

Macro-Offerte

- - {/* Create macro form */} -
-

Nuova Macro-Offerta

- - -