'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getArticleComponent;

var _index = require('./index');

var ArticleComps = _interopRequireWildcard(_index);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

function getArticleComponent() {
  var type = arguments.length <= 0 || arguments[0] === undefined ? 'unstyled' : arguments[0];

  switch (type) {
    case 'annotation':
      return ArticleComps.Annotation;
    case 'audio':
      return ArticleComps.Audio;
    case 'blockquote':
      return ArticleComps.BlockQuote;
    case 'quoteby':
      return ArticleComps.AlignedQuoteBy;
    case 'header-one':
      return ArticleComps.HeaderOne;
    case 'header-two':
      return ArticleComps.HeaderTwo;
    case 'code':
      return null;
    case 'embeddedCode':
    case 'embeddedcode':
      return ArticleComps.AlignedEmbedded;
    case 'image':
      return ArticleComps.AlignedImage;
    case 'imageDiff':
    case 'imagediff':
      return ArticleComps.AlignedImageDiff;
    case 'infobox':
      return ArticleComps.AlignedInfoBox;
    case 'ordered-list-item':
      return ArticleComps.OrderedList;
    case 'unordered-list-item':
      return ArticleComps.UnorderedList;
    case 'unstyled':
      return ArticleComps.Paragraph;
    case 'slideshow':
      return ArticleComps.Slideshow;
    case 'youtube':
      return ArticleComps.AlignedYoutube;
    default:
      return;
  }
}