@botonic/plugin-contentful
Version:
Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet
21 lines • 794 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createMarkUp = void 0;
const markdown_1 = require("./markdown");
const markup_1 = require("./markup");
const whatsapp_1 = require("./whatsapp");
function createMarkUp(type) {
switch (type) {
case markup_1.MarkupType.MARKDOWN:
case markup_1.MarkupType.GITHUB:
case markup_1.MarkupType.CONTENTFUL:
return new markdown_1.Markdown(type);
case markup_1.MarkupType.WHATSAPP:
return new whatsapp_1.WhatsApp();
default:
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
throw Error(`Invalid markdup type: ${type}`);
}
}
exports.createMarkUp = createMarkUp;
//# sourceMappingURL=factories.js.map