{selectInputs.map((selectInput, index) => (
))}
{
addons.selectable.catalogs.length === 0 && addons.catalog_resource === null ?
No addons
:
addons.catalog_resource === null ?
No select
:
addons.catalog_resource.content.type === 'Err' ?
Addons could not be loaded
:
addons.catalog_resource.content.type === 'Loading' ?
Loading
:
{
addons.catalog_resource.content.content
.filter((addon) => {
return search.length === 0 ||
(
(typeof addon.manifest.name === 'string' && addon.manifest.name.toLowerCase().includes(search.toLowerCase())) ||
(typeof addon.manifest.description === 'string' && addon.manifest.description.toLowerCase().includes(search.toLowerCase()))
);
})
.map((addon, index) => (
))
}
}
{
addAddonModalOpen ?