// Iconos estilo VS Code, en SVG inline propio (sin dependencias).
// Archivos: insignia con la abreviatura y el color canónico del lenguaje.
const FILE_TYPES = {
js: ['JS', '#f1dd3f'], mjs: ['JS', '#f1dd3f'], cjs: ['JS', '#f1dd3f'],
ts: ['TS', '#3178c6'], tsx: ['TS', '#3178c6'], jsx: ['JS', '#61dafb'],
py: ['PY', '#4b8bbe'], rs: ['RS', '#dea584'], go: ['GO', '#00add8'],
java: ['J', '#e76f00'], c: ['C', '#659ad2'], h: ['H', '#659ad2'],
cpp: ['C+', '#f34b7d'], cs: ['C#', '#178600'],
json: ['{}', '#cbcb41'], yaml: ['Y', '#cb4b4b'], yml: ['Y', '#cb4b4b'],
toml: ['T', '#9c4221'], xml: ['<>', '#e37933'],
html: ['<>', '#e34c26'], css: ['#', '#9b7cf6'], scss: ['#', '#c6538c'],
md: ['M', '#519aba'], txt: ['≡', '#8b93a8'], csv: ['⊞', '#89e051'],
sh: ['$', '#89e051'], sql: ['DB', '#e38c00'],
svg: ['SV', '#ffb13b'], png: ['IMG', '#a074c4'], jpg: ['IMG', '#a074c4'],
gif: ['IMG', '#a074c4'], ico: ['IMG', '#a074c4'],
lock: ['🔒', '#8b93a8'], gitignore: ['GIT', '#f05033'],
};
export function fileIcon(name) {
const base = name.toLowerCase();
const ext = base.startsWith('.git') ? 'gitignore' : (base.split('.').pop() || '');
const [label, color] = FILE_TYPES[ext] || ['·', '#6b7391'];
const fontSize = label.length > 2 ? 5 : (label.length === 2 ? 6.5 : 8);
return ``;
}
export function folderIcon() {
return ``;
}
// Codicons de UI (estilo VS Code, sin emojis). Trazos con currentColor.
const ico = (p, sw = 1.6) => ``;
export const UI = {
clear: ico(''),
history: ico(''),
gear: ico(''),
send: ico(''),
add: ico('', 1.8),
slash: ico('', 1.8),
editor: ico(''),
chat: ico(''),
puzzle: ico(''),
close: ico('', 1.8),
code: ico(''),
graph: ``,
city: ``,
terminal: ``,
};
// Codicons de la barra de actividad (trazos simples estilo VS Code).
export const ACTIVITY = {
files: ``,
search: ``,
gear: ``,
chat: ``,
};