export const ITEM_TYPES = ['code_ref', 'spec', 'memory', 'wiki'];
export const KNOWLEDGE_COLORS = {
    code_ref: { hex: '#d4a574', label: 'code' },
    spec: { hex: '#c46a4d', label: 'spec' },
    memory: { hex: '#8fae7e', label: 'memory' },
    wiki: { hex: '#948b7c', label: 'wiki' },
};
function asKnownType(itemType) {
    return ITEM_TYPES.includes(itemType) ? itemType : 'wiki';
}
export function colorFor(itemType) {
    return KNOWLEDGE_COLORS[asKnownType(itemType)].hex;
}
export function labelFor(itemType) {
    return KNOWLEDGE_COLORS[asKnownType(itemType)].label;
}
