\n {items.map((item, index) => {\n const key = item.id ?? `${item.type}-${item.href}-${index}`;\n\n if (item.type === \"text\") {\n return (\n
\n {item.label}\n \n );\n }\n\n if (item.type === \"image\") {\n const imageClassName = item.imageClassName?.trim().length\n ? item.imageClassName\n : \"size-8 max-h-9 object-contain\";\n\n return (\n
\n
\n \n );\n }\n\n const count =\n typeof item.notificationCount === \"number\" && item.notificationCount > 0\n ? item.notificationCount\n : 0;\n const badge =\n count > 0 ? (\n
\n {count > 9 ? \"9+\" : count}\n \n ) : null;\n\n return (\n
\n {item.icon}\n {badge}\n \n );\n })}\n
\n );\n}\n",
"type": "registry:block"
}
],
"type": "registry:block"
}