e.stopPropagation()}>
{/* Header */}
{/* Subtitle */}
{running ? (
Installing {doneCount + 1} of {items.length}…
) : allDone ? (
All libraries installed successfully
) : (
This project requires {items.length} {items.length === 1 ? 'library' : 'libraries'}.
Install them to compile correctly.
)}
{/* Library list */}
{items.map((item) => {
// For Wokwi-hosted libraries ("LibName@wokwi:hash"), show only the LibName
const displayName = item.name.includes('@wokwi:')
? item.name.split('@wokwi:')[0]
: item.name;
const isWokwiLib = item.name.includes('@wokwi:');
return (
{displayName}
{isWokwiLib && (
wokwi
)}
{item.status === 'pending' && pending}
{item.status === 'installing' && (
installing…
)}
{item.status === 'done' && (
installed
)}
{item.status === 'error' && (
error
)}
);
})}
{/* Footer */}
{allDone ? (
) : (
<>
>
)}