import * as React from 'react'; import $ from 'jquery'; import { observer } from 'mobx-react'; import { Button, Block, Loader, Icon, Select, IconObject, EmptySearch } from 'Component'; import { I, C, M, S, U, J, translate } from 'Lib'; interface State { isLoading: boolean; error: string; object: any; }; const ROOT_ID = 'preview'; const Create = observer(class Create extends React.Component { state: State = { isLoading: false, error: '', object: null, }; node: any = null; refSpace: any = null; html = ''; constructor (props: I.PageComponent) { super(props); this.onSave = this.onSave.bind(this); this.onClose = this.onClose.bind(this); this.onSelect = this.onSelect.bind(this); this.onSpaceChange = this.onSpaceChange.bind(this); }; render () { const { isLoading, error, object } = this.state; const { html } = S.Extension; const { space } = S.Common; const children = S.Block.getChildren(ROOT_ID, ROOT_ID, it => !it.isFile()); return (
this.node = ref} className="page pageCreate"> {isLoading ? : ''}