tibi-starter/types/content.d.ts

23 lines
496 B
TypeScript
Raw Normal View History

2024-01-27 19:58:35 +01:00
interface Page {
path: string
active: boolean
type: "page" | "teamMembers" | "jobOffers"
pageTitle: string
rows: Row[]
id: string
meta: {
title: string
description: string
keywords: string
}
}
interface Row {
columns: Column[]
}
type Column =
| { contentType: "image"; image: string; icons: { icon: string; link: string }[] }
| { contentType: "moduleImport"; moduleImport: string }
| { contentType: "text"; text: string }