'use strict';

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

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

function getIconFill(selected, disabled) {
    if (selected && !disabled) {
        return index.getColorAlias('contentInteractivePrimary');
    }
    if (disabled)
        return index.getColorAlias('contentDisabled');
    return index.getColorAlias('contentInteractiveSecondary');
}
function getHoverCursor(disabled, showClose, selected, isLoading) {
    if (disabled)
        return 'not-allowed';
    if ((selected && showClose) || isLoading)
        return 'default';
    return 'pointer';
}
function getChipVariant(variant) {
    switch (variant) {
        case 'ghost':
            return styles.Ghost;
        case 'outlined':
            return styles.Outlined;
        case 'primary':
        default:
            return styles.Primary;
    }
}

exports.getChipVariant = getChipVariant;
exports.getHoverCursor = getHoverCursor;
exports.getIconFill = getIconFill;
