feat(marketing-pages): add ui/query + barrel + feature test

This commit is contained in:
2026-05-05 08:32:08 +02:00
parent 7b64415020
commit 36e7515717
3 changed files with 51 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
type TrpcClient = {
marketingPages: {
pageBySlug: { queryOptions: (input: { slug: string }) => unknown };
siteSettings: { queryOptions: () => unknown };
};
};
export function pageBySlugQuery(client: TrpcClient, slug: string) {
return client.marketingPages.pageBySlug.queryOptions({ slug });
}
export function siteSettingsQuery(client: TrpcClient) {
return client.marketingPages.siteSettings.queryOptions();
}