import { Doc } from "../../../../../fields/Doc";
import { SubCollectionViewProps } from "../../../collections/CollectionSubView";
import { CollectionFreeFormView } from "../../../collections/collectionFreeForm";
import { TemplateManager } from "./TemplateManager";
import { TemplateLayouts } from "./TemplateBackend";
import { Template } from "./Template";

class EditableTemplateDoc extends CollectionFreeFormView {

    template: Template;

    constructor(props: SubCollectionViewProps, template: Template){
        super(props);
        this.template = template;
    }

    addDocumenta = (newBox: Doc | Doc[]): boolean => {
        this.addDocument(newBox);
        
        return true;
    }
}