fix(SW-438): add ContentCard, ScriptedCard and Shortcuts to ContentPage sidebar

This commit is contained in:
Matilda Landström
2024-10-14 17:11:21 +02:00
parent 66abe066ab
commit 01db5aa192
14 changed files with 290 additions and 13 deletions

View File

@@ -0,0 +1,18 @@
import { z } from "zod"
import { shortcutsRefsSchema, shortcutsSchema } from "../blocks/shortcuts"
import { SidebarEnums } from "@/types/enums/sidebar"
export const quickLinksSchema = z
.object({
typename: z
.literal(SidebarEnums.blocks.Shortcuts)
.optional()
.default(SidebarEnums.blocks.Shortcuts),
})
.merge(shortcutsSchema)
export const quickLinksSRefschema = z.object({
shortcutsRefsSchema,
})