29 lines
654 B
TypeScript
29 lines
654 B
TypeScript
interface Content {
|
|
path: string
|
|
active: boolean
|
|
type: "page"
|
|
pageTitle: string
|
|
rows: Row[]
|
|
id: string
|
|
meta: {
|
|
title: string
|
|
description: string
|
|
keywords: string
|
|
}
|
|
}
|
|
|
|
interface Row {
|
|
title: string
|
|
backgroundImage: string
|
|
columns: Column[]
|
|
}
|
|
|
|
type Column =
|
|
| { 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 }
|