c29fab8975
- ServiceTable: contenitore bg-card/shadow-card, header uppercase muted, righe hover:bg-muted/40, footer "Visualizzazione di N servizi" - CatalogSearch: usa il primitivo SearchInput - page: sottotitolo sezione - tokenizza OptionSelect ed EditableCell (accent-primary) — erano rimasti con hex hardcoded Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
23 lines
632 B
TypeScript
23 lines
632 B
TypeScript
import { getAllServices, getCatalogFieldOptions } from "@/lib/admin-queries";
|
|
import { CatalogSearch } from "./CatalogSearch";
|
|
import { PageHeader } from "@/components/admin/PageHeader";
|
|
|
|
export const revalidate = 0;
|
|
|
|
export default async function CatalogPage() {
|
|
const [services, options] = await Promise.all([
|
|
getAllServices(),
|
|
getCatalogFieldOptions(),
|
|
]);
|
|
|
|
return (
|
|
<div className="space-y-6">
|
|
<PageHeader
|
|
title="Catalogo Servizi"
|
|
subtitle="Configura e gestisci le singole voci di servizio offerte"
|
|
/>
|
|
<CatalogSearch services={services} options={options} />
|
|
</div>
|
|
);
|
|
}
|