import { TagOutline, TagNeutralAlternative, TagNeutral, TagGhost, TagInfo, TagBrand, TagWarning, TagError, TagPositive } from './styles.js';

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

export { getTagComponent };
