import { ElementDictionary } from './element' import { WithMongooseProps } from './with-mongoose-props' import { WithTranslations } from './with-translations' import { WithTenantProps } from './with-tenant-props' import { ReferenceEntityTypes, RenderTypes, SectionTypes } from '../constants' import { TenderTable } from './tender-table' export type Section = WithMongooseProps< WithTenantProps<{ name: string description: string backgroundColor?: string renderType: RenderTypes referenceEntityType: ReferenceEntityTypes sectionType: SectionTypes orderPosition: number referenceId?: string pageId: string elements: ElementDictionary[] links?: SectionLink[] height?: string; maxHeight?: string; heroAspectRatio?: string; sectionData?: TenderTable; // used for TENDERS_TABLE section translations: WithTranslations<{ name: string description: string }> }> > export type SectionLink = { link: string title: string }