zwischenstand
This commit is contained in:
12
types/content.d.ts
vendored
12
types/content.d.ts
vendored
@@ -1,7 +1,7 @@
|
||||
interface Page {
|
||||
interface Content {
|
||||
path: string
|
||||
active: boolean
|
||||
type: "page" | "teamMembers" | "jobOffers"
|
||||
type: "page"
|
||||
pageTitle: string
|
||||
rows: Row[]
|
||||
id: string
|
||||
@@ -13,10 +13,16 @@ interface Page {
|
||||
}
|
||||
|
||||
interface Row {
|
||||
title: string
|
||||
backgroundImage: string
|
||||
columns: Column[]
|
||||
}
|
||||
|
||||
type Column =
|
||||
| { contentType: "image"; image: string; icons: { icon: string; link: string }[] }
|
||||
| { contentType: "images"; images: string[] }
|
||||
| { contentType: "moduleImport"; moduleImport: string }
|
||||
| { contentType: "form"; moduleImport: string }
|
||||
| { contentType: "text"; text: string }
|
||||
| { contentType: "googleMaps" }
|
||||
|
||||
type Module = { type: "form"; form: DBFormObj; id: string } | { type: ""; id: string }
|
||||
|
||||
Reference in New Issue
Block a user