${allContent.length === 0 ? `
đ No Extensions Installed
Install games, mods, and texture packs from ContentDB or add them manually.
Browse ContentDB
` : `
${allContent.map(ext => {
const type = ext.package_type || ext.type;
const typeIcon = type === 'game' ? 'đŽ' : type === 'txp' ? 'đ¨' : 'đĻ';
const typeBadge = type === 'game' ? 'success' : type === 'txp' ? 'warning' : 'primary';
const sourceIcon = ext.source === 'contentdb' ? 'đ' : 'đ';
return `
${ext.short_description || ext.description || 'No description available.'}
${ext.dependencies && ext.dependencies.length > 0 ? `
Dependencies (${ext.dependencies.length}):
${ext.dependencies.map(dep =>
typeof dep === 'string' ? dep : `${dep.author}/${dep.name}`
).join(', ')}
` : ''}
${ext.contentdb_url ? `
View on ContentDB
` : ''}
${ext.source === 'contentdb' ? `
` : ''}
`;
}).join('')}
`}