export type DatabaseLayoutFormat = { propertyIcons?: "show" | "hide" pageFullWidth?: boolean } export type DatabasePropertyModuleConfig = { style: | "compact" | "large" | "small" | "landscape" | "portrait" | "square" | "map" | "text" } export type DatabaseLayoutModule = | { type: "cover" } | { type: "title"; pinnedProperties?: Array; propertyLabels?: "show" | "hide" } | { type: "properties"; variant?: "pinned" } | { type: "property"; property: string; config?: DatabasePropertyModuleConfig } | { type: "views"; relation: string } | { type: "editor" } | { type: "discussions" } | { type: "relations" } | { type: "backlinks" } | { type: "page_sections" } | { type: "bottom_controls" } export type DatabaseSimpleLayout = { main: Array sidebar?: Array format?: DatabaseLayoutFormat } export type DatabaseTabbedLayout = { main: Array tab: { id?: string modules: Array } sidebar?: Array format?: DatabaseLayoutFormat } export type DatabaseLayout = DatabaseSimpleLayout | DatabaseTabbedLayout