tibi-docs/types/content.d.ts
2024-03-11 17:25:59 +00:00

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 }