e.stopPropagation()}>
{/* Header */}
{t('editor.installLibs.title')}
{/* Subtitle */}
{running ? (
{t('editor.installLibs.installingProgress', {
done: doneCount + 1,
total: items.length,
})}
) : allDone ? (
{t('editor.installLibs.allDone')}
) : (
{t('editor.installLibs.required', { count: items.length })}
)}
{/* Library list */}
{items.map((item) => {
const isWokwiLib = item.spec.includes('@wokwi:');
return (
{item.name}
{item.version && (
v{item.version}
)}
{isWokwiLib && (
wokwi
)}
{item.status === 'pending' && (
{t('editor.installLibs.pending')}
)}
{item.status === 'installing' && (
{t('editor.installLibs.installing')}
)}
{item.status === 'done' && (
{t('editor.installLibs.installed')}
)}
{item.status === 'error' && (
{t('editor.installLibs.errorStatus')}
)}
);
})}
{/* Footer */}
{allDone ? (
) : (
<>
>
)}