import { ElementContainer } from './element-container' ; import * as MobxReact from 'mobx-react' ; import * as Model from '@meetalva/model' ; import * as React from 'react' ; export interface ElementContentContainerProps { content : Model . ElementContent ; } @ MobxReact . observer export class ElementContentContainer extends React . Component < ElementContentContainerProps > { public render ( ) { const { props } = this ; return ( < div style = { { paddingBottom : 2 } } > { props . content . getElements ( ) . map ( element => < ElementContainer key = { element . getId ( ) } element = { element } / > ) } < /div>); } }