'use strict';

const COLORS = [
    'indigo',
    'orange',
    'mint',
    'neutral',
    'sky',
    'lime',
    'grass',
    'cyan',
    'iris',
    'purple',
    'pink',
    'crimson',
    'gold'
];
function getAvatarColor(str) {
    const hash = str.split('').reduce((acc, char) => acc + char.charCodeAt(0), 0);
    const index = hash % COLORS.length;
    return COLORS[index];
}

exports.COLORS = COLORS;
exports.getAvatarColor = getAvatarColor;
//# sourceMappingURL=utils.cjs.map
