refactor: reuse query code for both loyalty and account pages
This commit is contained in:
12
server/routers/contentstack/breadcrumbs/input.ts
Normal file
12
server/routers/contentstack/breadcrumbs/input.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { z } from "zod"
|
||||
|
||||
export enum PageTypes {
|
||||
Account,
|
||||
Loyalty,
|
||||
}
|
||||
|
||||
export const PageTypeEnum = z
|
||||
.object({
|
||||
pageType: z.nativeEnum(PageTypes),
|
||||
})
|
||||
.default({ pageType: PageTypes.Account })
|
||||
Reference in New Issue
Block a user