import { observer } from "mobx-react"; import { observable } from "mobx"; import { action, computed } from "mobx"; import React = require("react"); import { StringLiteral } from "babel-types"; export class Template { constructor(name: string, layout: string) { this._name = name; this._layout = layout; } private _name: string; private _layout: string; get Name(): string { return this._name; } get Layout(): string { return this._layout; } } export namespace Templates { export const OuterCaption = new Template("Outer caption", `
{layout}
`); export const InnerCaption = new Template("Inner caption", `
{layout}
`); export const Title = new Template("Title", `
{layout}
`); }