'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var styles = require('./styles.js');

const getTagComponent = (variant) => {
    switch (variant) {
        case 'positive':
            return styles.TagPositive;
        case 'error':
            return styles.TagError;
        case 'warning':
            return styles.TagWarning;
        case 'brand':
            return styles.TagBrand;
        case 'info':
            return styles.TagInfo;
        case 'ghost':
            return styles.TagGhost;
        case 'neutral':
            return styles.TagNeutral;
        case 'neutral-alternative':
            return styles.TagNeutralAlternative;
        case 'outline':
            return styles.TagOutline;
        default:
            throw new Error('Error, incorrect props. Pass the correct set of props');
    }
};

exports.getTagComponent = getTagComponent;
